123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929 |
- import 'package:flutter/material.dart';
- import 'package:flutter_screenutil/flutter_screenutil.dart';
- import 'package:liftmanager/internal/bbs/model/liftcase_model.dart';
- import 'package:liftmanager/internal/wode/wode_router.dart';
- import 'package:liftmanager/net/api_service.dart';
- import 'package:liftmanager/res/resources.dart';
- import 'package:liftmanager/routers/fluro_navigator.dart';
- import 'package:liftmanager/utils/fast_notification.dart';
- import 'package:liftmanager/utils/time_format.dart';
- import 'package:liftmanager/utils/toast.dart';
- import 'package:liftmanager/widgets/app_bar.dart';
- import 'package:liftmanager/widgets/load_image.dart';
- import 'package:umeng_common_sdk/umeng_common_sdk.dart';
- class PiaoWait extends StatefulWidget {
- // QuestionList(this.index);
- // final String index;
- bool checkAll = false;
- @override
- PiaoWaitState createState() => PiaoWaitState();
- }
- class PiaoWaitState extends State<PiaoWait> {
- int _page = 1;
- List<int> idList = [];
- List<int> commentListWidget = [];
- List<dynamic> listCase;
- String totalMoney = '0.00';
- bool _hasData = false;
- bool _isEdit = false;
- @override
- void initState() {
- UmengCommonSdk.onPageStart("待开发票");
- super.initState();
- getLiftCasesListNoPage();
- print(66666);
- FastNotification.addListener("initThisPiao", (initThisStringPiao) {
- if (mounted) {
- getLiftCasesListNoPage();
- }
- });
- }
- complayTotalMoney() {
- double price = 0.0;
- listCase.forEach((subitem) {
- idList.forEach((i) {
- if (subitem.id == i) {
- price += double.parse('${subitem.payCost}');
- }
- });
- });
- setState(() {
- totalMoney = price.toStringAsFixed(2);
- widget.checkAll = (idList.length == listCase.length);
- });
- }
- Future getLiftCasesListNoPage() async {
- await NewApiService().getLiftCasesListNoPage(onSuccess: (res) {
- if (res != null) {
- _hasData = true;
- listCase = res;
- res.forEach((item) {
- // print(JsonEncoder().convert(item));
- // print(item.id);
- commentListWidget.add(item.id);
- });
- // LogUtil.d(JsonEncoder().convert(listCase));
- print(123);
- setState(() {});
- }
- }, onError: (code, msg) {
- toasts(msg);
- });
- }
- @override
- void dispose() {
- UmengCommonSdk.onPageEnd("待开发票");
- super.dispose();
- }
- @override
- Widget build(BuildContext context) {
- double width = MediaQuery.of(context).size.width;
- String checkFalse = "tab_first/check_false";
- String checkTrue = "tab_first/check_true";
- return Scaffold(
- // resizeToAvoidBottomPadding: true,
- appBar: MyAppBar(
- centerTitle: "待开发票",
- actions: <Widget>[
- !_isEdit
- ? FlatButton(
- child: Text("开发票"),
- textColor: Colours.text,
- highlightColor: Colors.transparent,
- onPressed: () {
- setState(() {
- _isEdit = true;
- });
- // NavigatorUtils.push(context, WodeRouter.piaotou);
- },
- )
- : Container()
- ],
- ),
- body: _hasData
- ? SafeArea(
- child: Stack(
- children: <Widget>[
- listCase.length > 0
- ? Container(
- color: Color(0xffF6F6F6),
- margin: EdgeInsets.only(bottom: _isEdit ? 60 : 0),
- // color: Color(0xFFF1F4FC),
- child: ListView(
- children: <Widget>[
- OrderListItemWidget(
- idList: idList,
- lists: listCase,
- isEdit: _isEdit,
- changeState: (id) {
- setState(() {
- print(557);
- if (idList.contains(id)) {
- idList.remove(id);
- } else {
- idList.add(id);
- }
- print(idList);
- print(commentListWidget);
- if (commentListWidget.length ==
- idList.length) {
- widget.checkAll = true;
- print(widget.checkAll);
- print(555);
- } else {
- widget.checkAll = false;
- print(widget.checkAll);
- print(556);
- }
- complayTotalMoney();
- print(idList);
- print(557);
- });
- })
- ],
- ),
- )
- : Center(child: Text("暂无数据")),
- _isEdit
- ? Positioned(
- bottom: 0,
- left: 0,
- child: Container(
- width: width,
- child: Row(children: <Widget>[
- Container(
- height: 60,
- // width: width / 2,
- color: Colors.white,
- child: GestureDetector(
- onTap: () {
- print(commentListWidget);
- setState(() {
- widget.checkAll = !widget.checkAll;
- if (widget.checkAll == false) {
- idList = [];
- } else {
- idList = [];
- commentListWidget.forEach((item) {
- idList.add(item);
- });
- }
- });
- complayTotalMoney();
- print(idList);
- print(89888);
- print(commentListWidget);
- },
- child: Row(
- mainAxisAlignment:
- MainAxisAlignment.center,
- children: <Widget>[
- SizedBox(width: 20),
- LoadAssetImage(
- // image: AssetImage(i['img']),
- widget.checkAll == true
- ? checkTrue
- : checkFalse,
- width: ScreenUtil().setWidth(20),
- height: ScreenUtil().setWidth(20),
- // alignment: Alignment.centerLeft,
- ),
- SizedBox(width: 5),
- Text(
- "已选",
- style: TextStyle(
- fontSize:
- ScreenUtil().setSp(14)),
- ),
- Text(
- "${idList.length}",
- style: TextStyle(
- color: Colours.blue_app_main,
- fontSize:
- ScreenUtil().setSp(14)),
- )
- ],
- ))),
- Container(
- height: 60,
- // width: width / 2,
- color: Colors.white,
- child: Row(
- mainAxisAlignment:
- MainAxisAlignment.center,
- children: <Widget>[
- SizedBox(
- width: 40,
- ),
- Text(
- "合计:",
- style: TextStyle(
- fontSize: ScreenUtil().setSp(14)),
- ),
- Text(
- " ¥$totalMoney",
- style: TextStyle(
- color: Color(0xffFF5B00),
- fontSize: ScreenUtil().setSp(14)),
- )
- ],
- )),
- Expanded(child: Container()),
- Container(
- height: 50,
- width: 130,
- margin: EdgeInsets.only(right: 10),
- // color: Color(0xff0388FD),
- decoration: new BoxDecoration(
- //背景
- color: Colours.blue_app_main,
- //设置四周圆角 角度
- borderRadius:
- BorderRadius.all(Radius.circular(25.0)),
- ),
- child: FlatButton(
- // padding: EdgeInsets.all(15.0),
- child: Text(
- "申请发票",
- style: TextStyle(
- fontSize: ScreenUtil().setSp(16)),
- ),
- textColor: Colors.white,
- onPressed: () {
- if (idList.length > 0) {
- String str = "";
- idList.forEach((item) {
- str += (item.toString() + ",");
- });
- print(str.substring(0, str.length));
- print(456);
- // double price = 0.0;
- // listCase.forEach((subitem) {
- // idList.forEach((i) {
- // if (subitem.id == i) {
- // price += subitem.payCost;
- // }
- // });
- // });
- NavigatorUtils.push(context,
- "${WodeRouter.kaipiao}?ids=${str.substring(0, str.length)}&price=${totalMoney.toString()}");
- idList = [];
- print(idList);
- } else {
- toasts("请选择一项");
- }
- },
- ),
- ),
- ])))
- : Container(child: null)
- ],
- ))
- : Center(
- child: Text("正在加载..."),
- ));
- }
- }
- class OrderListItemWidget extends StatelessWidget {
- OrderListItemWidget(
- {Key key,
- this.data,
- this.changeState,
- this.idList,
- this.lists,
- this.isEdit})
- : super(key: key);
- LiftCasesDetailModel data;
- Function changeState;
- List<int> idList;
- List<dynamic> lists;
- String checkFalse = "tab_first/check_false";
- String checkTrue = "tab_first/check_true";
- bool isEdit;
- List<Widget> getListWdiget(context) => lists.asMap().keys.map((i) {
- double width = MediaQuery.of(context).size.width;
- return Container(
- // height: 20,
- margin: EdgeInsets.fromLTRB(10, 10, 10, 0),
- padding: EdgeInsets.only(
- bottom: ScreenUtil().setWidth(15),
- top: ScreenUtil().setWidth(15)),
- decoration: new BoxDecoration(
- //背景
- color: Colors.white,
- //设置四周圆角 角度
- borderRadius: BorderRadius.all(Radius.circular(5.0)),
- ),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- isEdit
- ? GestureDetector(
- child: Container(
- padding: EdgeInsets.only(
- top: ScreenUtil().setWidth(0),
- left: ScreenUtil().setWidth(5),
- right: ScreenUtil().setWidth(5),
- bottom: ScreenUtil().setWidth(10)),
- child: LoadAssetImage(
- // image: AssetImage(i['img']),
- idList.contains(lists[i].id) ? checkTrue : checkFalse,
- width: ScreenUtil().setWidth(20),
- height: ScreenUtil().setWidth(20),
- // alignment: Alignment.centerLeft,
- ),
- ),
- onTap: () {
- changeState(lists[i].id);
- },
- )
- : Container(),
- Expanded(
- child: GestureDetector(
- onTap: () {
- NavigatorUtils.push(
- context, "${WodeRouter.orderDetail}?id=${lists[i].id}");
- // NavigatorUtils.push(context,
- // "${BbsRouter.recommendAsk}?id=${detailObj.id}&type=3");
- },
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- SizedBox(
- width: 10,
- ),
- ClipRRect(
- borderRadius: BorderRadius.circular(20),
- child: LoadNetworkImage(
- lists[i].avatarUrl,
- width: ScreenUtil().setWidth(43),
- height: ScreenUtil().setWidth(43),
- // alignment: Alignment.centerLeft,
- ),
- ),
- SizedBox(
- width: 10,
- ),
- Expanded(
- child: Container(
- padding: EdgeInsets.only(right: 10),
- child: Column(
- children: <Widget>[
- Container(
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- Row(
- crossAxisAlignment:
- CrossAxisAlignment.center,
- children: <Widget>[
- Text(
- lists[i].name ?? '',
- style: TextStyle(
- fontSize: ScreenUtil().setSp(17),
- ),
- textAlign: TextAlign.start,
- ),
- Container(
- decoration: BoxDecoration(
- //背景
- color: lists[i].dataTable == 1
- ? Colours.blue_app_main
- : Color(0xffFDAF2C),
- //设置四周圆角 角度
- borderRadius: BorderRadius.all(
- Radius.circular(4.0)),
- ),
- margin: EdgeInsets.only(left: 5),
- padding: EdgeInsets.only(
- left: 5,
- right: 5,
- top: 2,
- bottom: 2),
- child: Text(
- lists[i].dataTable == 1
- ? '问诊服务'
- : '出诊服务',
- style: TextStyle(
- color: Colors.white,
- fontSize: ScreenUtil().setSp(14),
- ),
- textAlign: TextAlign.start,
- ),
- ),
- ],
- ),
- ],
- ),
- ),
- Container(
- child: Row(
- mainAxisAlignment:
- MainAxisAlignment.spaceBetween,
- children: <Widget>[
- Row(
- crossAxisAlignment:
- CrossAxisAlignment.center,
- children: <Widget>[
- Text(
- lists[i].createTime != null
- ? DateUtils.instance
- .getFormartData(
- timeSamp:
- lists[i].createTime,
- format: "MM月dd日")
- : '',
- style: TextStyle(
- color: Color(0xff999999),
- fontSize: ScreenUtil().setSp(13),
- ),
- textAlign: TextAlign.start,
- ),
- Container(
- padding: EdgeInsets.only(left: 5),
- child: Text(
- lists[i].brandName ?? '',
- style: TextStyle(
- color: Colours.blue_app_main,
- fontSize: ScreenUtil().setSp(13),
- ),
- textAlign: TextAlign.start,
- ),
- )
- ],
- ),
- ],
- ),
- ),
- lists[i].dataTable != 1
- ? Container(
- child: Row(
- mainAxisAlignment:
- MainAxisAlignment.spaceBetween,
- children: <Widget>[
- Row(
- crossAxisAlignment:
- CrossAxisAlignment.start,
- children: <Widget>[
- Container(
- // padding: EdgeInsets.only(left: 5),
- child: Text(
- '出诊时间:',
- style: TextStyle(
- color: Color(0xff999999),
- fontSize:
- ScreenUtil().setSp(13),
- ),
- textAlign: TextAlign.start,
- ),
- ),
- Text(
- lists[i].createTime != null
- ? DateUtils.instance
- .getFormartData(
- timeSamp: lists[i]
- .createTime,
- format:
- "MM月dd日 HH:mm")
- : '',
- style: TextStyle(
- color: Color(0xff666666),
- fontSize:
- ScreenUtil().setSp(13),
- ),
- textAlign: TextAlign.start,
- ),
- ],
- ),
- ],
- ),
- )
- : Container(),
- lists[i].dataTable != 1
- ? Container(
- // margin: EdgeInsets.only(top: 6),
- child: Row(
- children: <Widget>[
- Container(
- // padding: EdgeInsets.only(left: 5),
- child: Text(
- '出诊地点:',
- style: TextStyle(
- color: Color(0xff999999),
- fontSize:
- ScreenUtil().setSp(13),
- ),
- textAlign: TextAlign.start,
- ),
- ),
- Container(
- width: ScreenUtil()
- .setWidth(isEdit ? 190 : 220),
- child: Text(
- '${lists[i].address ?? ''}',
- style: TextStyle(
- color: Color(0xff666666),
- fontSize:
- ScreenUtil().setSp(13),
- // color: Color(0xff666666),
- // fontSize: ScreenUtil().setSp(15),
- ),
- textAlign: TextAlign.start,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- ),
- ),
- ],
- ),
- )
- : Container(),
- Container(
- // margin: EdgeInsets.only(top: 6),
- child: Row(
- children: <Widget>[
- Container(
- // padding: EdgeInsets.only(left: 5),
- child: Text(
- '问题描述:',
- style: TextStyle(
- color: Color(0xff999999),
- fontSize: ScreenUtil().setSp(13),
- ),
- textAlign: TextAlign.start,
- ),
- ),
- Container(
- width: ScreenUtil()
- .setWidth(isEdit ? 190 : 220),
- child: Text(
- '${lists[i].expression ?? ''}',
- style: TextStyle(
- color: Color(0xff666666),
- fontSize: ScreenUtil().setSp(13),
- // color: Color(0xff666666),
- // fontSize: ScreenUtil().setSp(15),
- ),
- textAlign: TextAlign.start,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- ),
- ),
- ],
- ),
- ),
- Container(
- margin: EdgeInsets.only(top: 6),
- child: Row(
- children: <Widget>[
- Container(
- padding: EdgeInsets.only(right: 5),
- child: Text(
- lists[i].payCost != null
- ? "¥${lists[i].payCost.toString()}"
- : '',
- style: TextStyle(
- color: Color(0xffFD0808),
- fontSize: ScreenUtil().setSp(15),
- ),
- textAlign: TextAlign.start,
- ),
- ),
- ],
- ),
- )
- // Container(
- // child: Row(
- // mainAxisAlignment:
- // MainAxisAlignment.start,
- // children: <Widget>[
- // Row(
- // crossAxisAlignment:
- // CrossAxisAlignment
- // .center,
- // children: <Widget>[
- // Text(
- // detailObj.createTime !=
- // null
- // ? DateUtils
- // .instance
- // .getFormartData(
- // timeSamp:
- // detailObj
- // .createTime,
- // format:
- // "MM月dd日",
- // )
- // : '',
- // style: TextStyle(
- // color: Color(
- // 0xff999999),
- // fontSize:
- // ScreenUtil()
- // .setSp(
- // 13),
- // ),
- // textAlign:
- // TextAlign.left,
- // ),
- // Container(
- // padding:
- // EdgeInsets.only(
- // left: 5),
- // child: Text(
- // detailObj
- // .brandName ??
- // '',
- // style: TextStyle(
- // color: Color(
- // 0xff999999),
- // fontSize:
- // ScreenUtil()
- // .setSp(
- // 13),
- // ),
- // textAlign:
- // TextAlign
- // .left,
- // ),
- // )
- // ],
- // ),
- // ],
- // ),
- // ),
- // Row(
- // mainAxisAlignment:
- // MainAxisAlignment.start,
- // children: <Widget>[
- // Container(
- // width: 260,
- // child: Text(
- // detailObj.expression ??
- // '',
- // style: TextStyle(
- // color:
- // Color(0xff0288FF),
- // fontSize: ScreenUtil()
- // .setSp(15),
- // ),
- // textAlign:
- // TextAlign.left,
- // maxLines: 1,
- // overflow: TextOverflow
- // .ellipsis,
- // ),
- // ),
- // ],
- // ),
- ],
- ),
- ),
- )
- ],
- ),
- ),
- ),
- ],
- ),
- );
- // Container(
- // padding: EdgeInsets.all(ScreenUtil().setWidth(10)),
- // width: width,
- // decoration: BoxDecoration(
- // border: Border(
- // bottom: BorderSide(width: 0.5, color: Colours.line),
- // ),
- // ),
- // // height: 100,
- // child: Row(
- // children: <Widget>[
- // GestureDetector(
- // child: Container(
- // padding: EdgeInsets.only(
- // top: ScreenUtil().setWidth(10),
- // left: ScreenUtil().setWidth(5),
- // right: ScreenUtil().setWidth(5),
- // bottom: ScreenUtil().setWidth(10)),
- // child: LoadAssetImage(
- // // image: AssetImage(i['img']),
- // idList.contains(lists[i].id) ? checkTrue : checkFalse,
- // width: ScreenUtil().setWidth(20),
- // height: ScreenUtil().setWidth(20),
- // // alignment: Alignment.centerLeft,
- // ),
- // ),
- // onTap: () {
- // changeState(lists[i].id);
- // },
- // ),
- // Expanded(
- // child: GestureDetector(
- // behavior: HitTestBehavior.opaque,
- // onTap: () {
- // NavigatorUtils.push(
- // context, "${WodeRouter.orderDetail}?id=${lists[i].id}");
- // },
- // child: Row(
- // crossAxisAlignment: CrossAxisAlignment.start,
- // // mainAxisSize: MainAxisSize.min,
- // children: <Widget>[
- // Container(
- // margin: EdgeInsets.only(
- // left: ScreenUtil().setWidth(10),
- // right: ScreenUtil().setWidth(10),
- // top: ScreenUtil().setWidth(5)),
- // decoration: BoxDecoration(
- // borderRadius:
- // BorderRadius.circular(ScreenUtil().setWidth(22)),
- // ),
- // child: ClipRRect(
- // borderRadius:
- // BorderRadius.circular(ScreenUtil().setWidth(22)),
- // child: LoadNetworkImage(
- // lists[i].avatarUrl,
- // width: ScreenUtil().setWidth(43),
- // height: ScreenUtil().setWidth(43),
- // // alignment: Alignment.centerLeft,
- // ),
- // ),
- // ),
- // Expanded(
- // // flex: 1,
- // // fit: FlexFit.loose,
- // child: Container(
- // padding:
- // EdgeInsets.only(right: ScreenUtil().setWidth(15)),
- // child: Column(
- // children: <Widget>[
- // Container(
- // child: Row(
- // mainAxisAlignment:
- // MainAxisAlignment.spaceBetween,
- // children: <Widget>[
- // Row(
- // crossAxisAlignment:
- // CrossAxisAlignment.center,
- // children: <Widget>[
- // Text(
- // lists[i].name,
- // style: TextStyle(
- // color: Color(0xff333333),
- // fontSize: ScreenUtil().setSp(17)),
- // textAlign: TextAlign.start,
- // ),
- // Container(
- // padding: EdgeInsets.only(left: 5),
- // child: Text(
- // lists[i].dataTable == 1
- // ? '问诊服务'
- // : '出诊服务',
- // style: TextStyle(
- // color: Color(0xff0288FF),
- // fontSize: ScreenUtil().setSp(14),
- // ),
- // textAlign: TextAlign.start,
- // ),
- // )
- // ],
- // ),
- // // Container(
- // // child: Text(
- // // OrderConstant.getStatusName(data.statuz, data.dataTable, arrivedFlag: data.arrivedFlag, userType: 'USER'),
- // // style: TextStyle(
- // // color: [].indexOf(data.statuz) == -1
- // // ? Color(0xff0288FF)
- // // : Color(0xffF84203),
- // // fontSize: ScreenUtil().setSp(14),
- // // ),
- // // textAlign: TextAlign.end,
- // // ),
- // // )
- // ],
- // ),
- // ),
- // Container(
- // child: Row(
- // mainAxisAlignment:
- // MainAxisAlignment.spaceBetween,
- // children: <Widget>[
- // Row(
- // crossAxisAlignment:
- // CrossAxisAlignment.center,
- // children: <Widget>[
- // Text(
- // lists[i].createTime != null
- // ? DateUtils.instance
- // .getFormartData(
- // timeSamp:
- // lists[i].createTime,
- // format: "yyyy-MM-dd")
- // : '',
- // style: TextStyle(
- // color: Color(0xff999999),
- // fontSize: ScreenUtil().setSp(13),
- // ),
- // textAlign: TextAlign.start,
- // ),
- // Container(
- // padding: EdgeInsets.only(left: 5),
- // child: Text(
- // lists[i].brandName ?? '',
- // style: TextStyle(
- // color: Color(0xff999999),
- // fontSize: ScreenUtil().setSp(13),
- // ),
- // textAlign: TextAlign.start,
- // ),
- // )
- // ],
- // ),
- // ],
- // ),
- // ),
- // Container(
- // // margin: EdgeInsets.only(top: 6),
- // child: Row(
- // children: <Widget>[
- // Container(
- // width: width * 0.6,
- // padding: EdgeInsets.only(right: 5),
- // child: Text(
- // lists[i].expression ?? '',
- // style: TextStyle(
- // color: Color(0xff666666),
- // fontSize: ScreenUtil().setSp(15),
- // ),
- // textAlign: TextAlign.start,
- // maxLines: 1,
- // overflow: TextOverflow.ellipsis,
- // ),
- // ),
- // ],
- // ),
- // ),
- // Container(
- // margin: EdgeInsets.only(top: 6),
- // child: Row(
- // children: <Widget>[
- // Container(
- // padding: EdgeInsets.only(right: 5),
- // child: Text(
- // lists[i].payCost != null
- // ? "¥${lists[i].payCost.toString()}"
- // : '',
- // style: TextStyle(
- // color: Color(0xffFD0808),
- // fontSize: ScreenUtil().setSp(15),
- // ),
- // textAlign: TextAlign.start,
- // ),
- // ),
- // ],
- // ),
- // )
- // ],
- // ),
- // ),
- // )
- // ],
- // ),
- // ),
- // )
- // ],
- // ),
- // );
- }).toList();
- @override
- @override
- Widget build(BuildContext context) {
- return Container(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: getListWdiget(context),
- ),
- );
- }
- }
|