From 82766835da2414c9f35d076b184839960876a96b Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Wed, 3 Feb 2021 13:15:11 +0800 Subject: [PATCH] add life pay detail page --- .../life_pay/widget/life_pay_detail_page.dart | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 lib/pages/life_pay/widget/life_pay_detail_page.dart diff --git a/lib/pages/life_pay/widget/life_pay_detail_page.dart b/lib/pages/life_pay/widget/life_pay_detail_page.dart new file mode 100644 index 00000000..0032c99b --- /dev/null +++ b/lib/pages/life_pay/widget/life_pay_detail_page.dart @@ -0,0 +1,81 @@ +import 'package:akuCommunity/base/base_style.dart'; +import 'package:akuCommunity/model/manager/life_pay_model.dart'; +import 'package:akuCommunity/utils/bee_parse.dart'; +import 'package:akuCommunity/widget/bee_scaffold.dart'; +import 'package:akuCommunity/widget/buttons/bee_check_box.dart'; +import 'package:flutter/material.dart'; +import 'package:akuCommunity/utils/headers.dart'; +import 'package:get/get.dart'; + +class LifePayDetailPage extends StatefulWidget { + final LifePayMolde model; + LifePayDetailPage({ + Key key, + this.model, + }) : super(key: key); + + @override + _LifePayDetailPageState createState() => _LifePayDetailPageState(); +} + +class _LifePayDetailPageState extends State { + @override + Widget build(BuildContext context) { + return BeeScaffold( + title: + '${BeeParse.getCustomYears(widget.model.years)}-${widget.model.years}年明细', + body: ListView( + padding: EdgeInsets.only(top: 16.w), + children: [ + + ], + ), + bottomNavi: Container( + padding: EdgeInsets.fromLTRB( + 32.w, 16.w, 32.w, 12.w + MediaQuery.of(context).padding.bottom), + child: Row( + children: [ + BeeCheckBox.round( + onChange: (value) {}, + size: 40.w, + ), + Spacer(), + Column( + crossAxisAlignment: CrossAxisAlignment.end, + mainAxisSize: MainAxisSize.min, + children: [ + RichText( + text: TextSpan( + text: '合计:', + style: TextStyle( + color: ktextPrimary, + fontSize: 32.sp, + fontWeight: FontWeight.bold), + children: [ + TextSpan( + text: '¥3009.84', + style: TextStyle( + color: kDangerColor, + fontSize: 32.sp, + fontWeight: FontWeight.bold)), + ])), + '已选10项'.text.color(ktextSubColor).size(20.sp).make(), + ], + ), + MaterialButton( + elevation: 0, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(37.w)), + color: kPrimaryColor, + padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w), + onPressed: () { + Get.back(); + }, + child: '选好了'.text.black.size(32.sp).bold.make(), + ), + ], + ), + ), + ); + } +}