|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_html/flutter_html.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:huixiang/utils/font_weight.dart';
|
|
|
|
|
|
|
|
import '../retrofit/data/rechargeActLists.dart';
|
|
|
|
|
|
|
|
class RechargeWidget extends StatefulWidget {
|
|
|
|
final PreferentialList preferentialList;
|
|
|
|
RechargeWidget(this.preferentialList);
|
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() {
|
|
|
|
return _RechargeWidget();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class _RechargeWidget extends State<RechargeWidget> {
|
|
|
|
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.preferentialList.remark ?? "",
|
|
|
|
customImageRenders: {
|
|
|
|
networkSourceMatcher(): networkImageRender(
|
|
|
|
loadingWidget: () {
|
|
|
|
return Container();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
}
|