|
|
|
@ -2,7 +2,7 @@ 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'; |
|
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
|
|
|
|
|
class StoreHtml extends StatefulWidget { |
|
|
|
|
final Map<String, dynamic> arguments; |
|
|
|
@ -16,7 +16,6 @@ class StoreHtml extends StatefulWidget {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver { |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
void initState() { |
|
|
|
|
super.initState(); |
|
|
|
@ -24,16 +23,40 @@ class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver {
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Scaffold( |
|
|
|
|
backgroundColor: Colors.white, |
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
title:"店铺详情", |
|
|
|
|
titleColor: Colors.black, |
|
|
|
|
background: Color(0xFFFFFFFF), |
|
|
|
|
leadingColor: Colors.black, |
|
|
|
|
return Container( |
|
|
|
|
color: Colors.white, |
|
|
|
|
padding:EdgeInsets.only(top:MediaQuery.of(context).padding.top+17.h,left: 16.w,right: 16.w), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap:(){ |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
}, |
|
|
|
|
child:Image.asset( |
|
|
|
|
"assets/image/integral_return.webp", |
|
|
|
|
height: 24, |
|
|
|
|
width: 24, |
|
|
|
|
) |
|
|
|
|
), |
|
|
|
|
Expanded(child: |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
margin: EdgeInsets.only(right: 24.w), |
|
|
|
|
child: Text( |
|
|
|
|
"店铺详情", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
), |
|
|
|
|
body: Container( |
|
|
|
|
margin: EdgeInsets.only(left:11.w,right: 10.w), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
child: Html( |
|
|
|
|
data: widget.arguments["remark"] ?? "", |
|
|
|
|
customImageRenders: { |
|
|
|
@ -43,7 +66,10 @@ class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver {
|
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
}, |
|
|
|
|
),), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|