You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
2 years ago
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_html/flutter_html.dart';
|
||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||
|
import 'package:huixiang/view_widget/my_appbar.dart';
|
||
|
|
||
|
class StoreHtml extends StatefulWidget {
|
||
|
final Map<String, dynamic> arguments;
|
||
|
|
||
|
StoreHtml({this.arguments});
|
||
|
|
||
|
@override
|
||
|
State<StatefulWidget> createState() {
|
||
|
return _StoreHtml();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver {
|
||
|
|
||
|
@override
|
||
|
void initState() {
|
||
|
super.initState();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
backgroundColor: Colors.white,
|
||
|
appBar: MyAppBar(
|
||
|
title:"店铺详情",
|
||
|
titleColor: Colors.black,
|
||
|
background: Color(0xFFFFFFFF),
|
||
|
leadingColor: Colors.black,
|
||
|
),
|
||
|
body: Container(
|
||
|
margin: EdgeInsets.only(left:11.w,right: 10.w),
|
||
|
child:Html(
|
||
|
data:widget.arguments["remark"] ?? "",
|
||
|
customImageRenders: {
|
||
|
networkSourceMatcher(): networkImageRender(
|
||
|
loadingWidget: () {
|
||
|
return Container();
|
||
|
},
|
||
|
),
|
||
|
},
|
||
|
),),
|
||
|
);
|
||
|
}
|
||
|
}
|