import 'package:flutter/material.dart'; import 'package:flutter_html/flutter_html.dart'; import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/retrofit/data/coupon.dart'; import 'package:huixiang/retrofit/data/recharge_list.dart'; import 'package:huixiang/retrofit/data/store.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:huixiang/store/scan.dart'; import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/view_widget/border_text.dart'; import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/round_button.dart'; class RechargeWidget extends StatefulWidget { final RechargeList rechargeA; RechargeWidget(this.rechargeA); @override State createState() { return _RechargeWidget(); } } class _RechargeWidget extends State { int selectIndex = 0; @override Widget build(BuildContext context) { return Container( padding: EdgeInsets.only(top: 12), decoration: new BoxDecoration( color: Colors.white, borderRadius: new BorderRadius.only( topLeft: const Radius.circular(25.0), topRight: const Radius.circular(25.0))), child: Container( height:355, child:SingleChildScrollView( physics: BouncingScrollPhysics(), child:Column( children: [ Row( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded(child: Container( margin: EdgeInsets.symmetric(vertical: 12.h), alignment: Alignment.center, child: Text( "充值说明", style: TextStyle( fontWeight: MyFontWeight.bold, fontSize: 15.sp, color: Color(0xFF353535), ), ), )), GestureDetector( onTap: (){ setState(() { Navigator.of(context).pop(); }); }, child: Icon( Icons.clear, color: Colors.black, size: 18, ), ), SizedBox(width: 14), ], ), SizedBox(height: 12.h,), Container( width: double.infinity, height: 1.h, color: Color(0xFFF2F2F2), margin: EdgeInsets.only(bottom:13.h), ), Padding(padding:EdgeInsets.only(left: 14), child: Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ Expanded( child: Container( color: Colors.white, child: Html( data: widget.rechargeA.remark ?? "", customImageRenders: { networkSourceMatcher(): networkImageRender( loadingWidget: () { return Container(); }, ), }, ), ), ) ], ),) ], ), ))); } }