Widget build(BuildContext context) {
return MPScaffold(
name: 'Text',
backgroundColor: Color.fromARGB(255, 236, 236, 236),
body: SingleChildScrollView(
padding: EdgeInsets.all(24),
child: HTMLImageSizeProcesser(
maxWidth: MediaQuery.of(context).size.width - 48,
builder: (context) => RichText(text: HTML.toTextSpan(context, '''
<body>
<h1 style='color: white; font-size:50px; font-style:italic;
background-color: rgb(0,122,255); font-weight:100;)'> Hello word! </h1>
<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg9.51tietu.net%2Fpic%2F2019-091307%2Fntplrtyw2bvntplrtyw2bv.jpg&refer=http%3A%2F%2Fimg9.51tietu.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1653061594&t=585510887893d145fd39e66ac3db7937" />
<p>Lorem ipsum dolor sit, consectetur adipiscing elit. Pellentesque in leo
id dui bibendum fringilla in et arcu. In vehicula vel est sed mattis.</p>
</body>
''')),
),
),
);
}