Browse Source

详情文本页面更改;

new_revision_app
wurong 2 years ago
parent
commit
eab02a046c
  1. 54
      lib/store/store_html.dart

54
lib/store/store_html.dart

@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart'; import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_screenutil/flutter_screenutil.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 { class StoreHtml extends StatefulWidget {
final Map<String, dynamic> arguments; final Map<String, dynamic> arguments;
@ -16,7 +16,6 @@ class StoreHtml extends StatefulWidget {
} }
class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver { class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver {
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@ -24,18 +23,42 @@ class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Container(
backgroundColor: Colors.white, color: Colors.white,
appBar: MyAppBar( padding:EdgeInsets.only(top:MediaQuery.of(context).padding.top+17.h,left: 16.w,right: 16.w),
title:"店铺详情", child: Column(
titleColor: Colors.black, children: [
background: Color(0xFFFFFFFF), Row(
leadingColor: Colors.black, 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), ),),
child:Html( ],
data:widget.arguments["remark"] ?? "", ),
Container(
child: Html(
data: widget.arguments["remark"] ?? "",
customImageRenders: { customImageRenders: {
networkSourceMatcher(): networkImageRender( networkSourceMatcher(): networkImageRender(
loadingWidget: () { loadingWidget: () {
@ -43,7 +66,10 @@ class _StoreHtml extends State<StoreHtml> with WidgetsBindingObserver {
}, },
), ),
}, },
),), ),
)
],
),
); );
} }
} }

Loading…
Cancel
Save