Browse Source

Merge branch 'dev' of https://git.lotus-wallet.com/fmk/huixiang_app

 Conflicts:
	lib/store/store_view/settlement.dart
master
fmk 3 years ago
parent
commit
a82e916979
  1. 16
      lib/order/order_view/order_status.dart
  2. 6
      lib/store/store_order.dart
  3. 477
      lib/store/store_view/settlement.dart
  4. 12
      lib/view_widget/rename_dialog.dart
  5. 104
      lib/view_widget/rename_dialog_content.dart

16
lib/order/order_view/order_status.dart

@ -91,7 +91,7 @@ class _OrderStatus extends State<OrderStatus> {
), ),
), ),
Image.asset( Image.asset(
"assets/image/order_ok.png", statusPicture(widget.title),
height: 66.h, height: 66.h,
width:66.w, width:66.w,
), ),
@ -205,6 +205,18 @@ class _OrderStatus extends State<OrderStatus> {
]; ];
} }
statusPicture(String status) {
String tripStatus = "assets/image/wait_meal.png";
if (status.contains(S.of(context).dingdanyiwancheng)) {
tripStatus = "assets/image/order_ok.png";
} else if (status.contains(S.of(context).dingdanyituikuan)) {
tripStatus = "assets/image/order_refund.png";
} else if (status.contains(S.of(context).quxiaodingdan)) {
tripStatus = "assets/image/oeder_cancel.png";
} else if (status.contains(S.of(context).dengdaiyonghuqucan)) {
tripStatus = "assets/image/wait_meal.png";
}
return tripStatus;
}
} }

6
lib/store/store_order.dart

@ -359,7 +359,11 @@ class _StoreOrderPage extends State<StoreOrderPage>
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
'/router/settlement', '/router/settlement',
arguments: widget.arguments, arguments: {
"storeName": storeInfo.storeName,
"address": storeInfo.address,
"headMobile": storeInfo.headMobile,
},
); );
}, },
child: RoundButton( child: RoundButton(

477
lib/store/store_view/settlement.dart

@ -7,10 +7,13 @@ import 'package:huixiang/order/order_view/order_commodity.dart';
import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/base_data.dart';
import 'package:huixiang/retrofit/data/order_info.dart'; import 'package:huixiang/retrofit/data/order_info.dart';
import 'package:huixiang/retrofit/data/settleOrderInfo.dart'; import 'package:huixiang/retrofit/data/settleOrderInfo.dart';
import 'package:huixiang/retrofit/data/store_info.dart';
import 'package:huixiang/retrofit/min_api.dart'; import 'package:huixiang/retrofit/min_api.dart';
import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/retrofit/retrofit_api.dart';
import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/my_appbar.dart'; import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:huixiang/view_widget/rename_dialog.dart';
import 'package:huixiang/view_widget/rename_dialog_content.dart';
import 'package:huixiang/view_widget/round_button.dart'; import 'package:huixiang/view_widget/round_button.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
@ -19,7 +22,7 @@ class Settlement extends StatefulWidget {
final arguments; final arguments;
final OrderInfo orderInfo; final OrderInfo orderInfo;
Settlement({this.arguments, this.orderInfo}); Settlement({this.arguments,this.orderInfo});
@override @override
State<StatefulWidget> createState() { State<StatefulWidget> createState() {
@ -28,7 +31,7 @@ class Settlement extends StatefulWidget {
} }
class _Settlement extends State<Settlement> { class _Settlement extends State<Settlement> {
ApiService apiService;
MinApiService minService; MinApiService minService;
int selectedBtn = 0; int selectedBtn = 0;
@ -37,17 +40,17 @@ class _Settlement extends State<Settlement> {
super.initState(); super.initState();
SharedPreferences.getInstance().then((value) { SharedPreferences.getInstance().then((value) {
minService = MinApiService( apiService = ApiService(
Dio(), Dio(),
context: context, context: context,
token: value.getString("minToken"), token: value.getString("token"),
tenant: value.getString("tenant"),
); );
queryOrderInfo(); queryOrderInfo();
}); });
} }
OrderInfo orderInfo; OrderInfo orderInfo;
StoreInfo storeInfo;
int payStatus = 0; int payStatus = 0;
int orderStatus = 0; int orderStatus = 0;
int sendStatus = 0; int sendStatus = 0;
@ -55,41 +58,40 @@ class _Settlement extends State<Settlement> {
int refundStatus = 0; int refundStatus = 0;
// String storeType = "NORMALSTORE"; //NORMALSTORE FASTSTORE RETAILSTORE // String storeType = "NORMALSTORE"; //NORMALSTORE FASTSTORE RETAILSTORE
// queryDetails() async { queryDetails() async {
// BaseData<OrderInfo> baseData = BaseData<OrderInfo> baseData = await apiService.orderDetail(widget.arguments["id"]);
// await apiService.orderDetail(widget.arguments["id"]); if (baseData != null && baseData.isSuccess) {
// if (baseData != null && baseData.isSuccess) { orderInfo = baseData.data;
// orderInfo = baseData.data; payStatus = orderInfo.payStatus;
// payStatus = orderInfo.payStatus; orderStatus = orderInfo.orderStatus;
// orderStatus = orderInfo.orderStatus; sendStatus = orderInfo.sendStatus;
// sendStatus = orderInfo.sendStatus; isTakeOut = orderInfo.isTakeOut;
// isTakeOut = orderInfo.isTakeOut; refundStatus = orderInfo.refundStatus;
// refundStatus = orderInfo.refundStatus; // storeType = orderInfo.storeVO.posType.code;
// // storeType = orderInfo.storeVO.posType.code; print("order refund_status: $refundStatus");
// print("order refund_status: $refundStatus"); print("order payStatus: $payStatus");
// print("order payStatus: $payStatus"); print("order orderStatus: $orderStatus");
// print("order orderStatus: $orderStatus"); print("order sendStatus: $sendStatus");
// print("order sendStatus: $sendStatus"); print("order isTakeOut: $isTakeOut");
// print("order isTakeOut: $isTakeOut"); if (mounted)
// if (mounted) setState(() {
// setState(() { statusTitle();
// statusTitle(); });
// }); }
// } }
// }
/// ///
queryOrderInfo() async { queryOrderInfo() async {
// BaseData<SettleOrderInfo> baseData = await minService.getOrderInfo({ BaseData<SettleOrderInfo> baseData = await minService.getOrderInfo({
// "addressId":0, "addressId":0,
// "isTake": 0, "isTake": 0,
// "memberCouponId": 0, "memberCouponId": 0,
// "orderId": widget.arguments["orderId"], "orderId": widget.arguments["orderId"],
// "promotionId": 0 "promotionId": 0
// }); });
// if (baseData != null && baseData.isSuccess) { if (baseData != null && baseData.isSuccess) {
// setState(() {}); setState(() {});
// } }
} }
@override @override
@ -115,9 +117,8 @@ class _Settlement extends State<Settlement> {
appBar: MyAppBar( appBar: MyAppBar(
background: Color(0xFF3A405A), background: Color(0xFF3A405A),
leadingColor: Colors.white, leadingColor: Colors.white,
title: S.of(context).dingdanjiesuan, title:S.of(context).dingdanjiesuan,
titleColor: Colors.white, titleColor: Colors.white,
brightness: Brightness.dark,
titleSize: 18.sp, titleSize: 18.sp,
), ),
body: Container( body: Container(
@ -127,10 +128,7 @@ class _Settlement extends State<Settlement> {
child: Column( child: Column(
children: [ children: [
distributionMode(), distributionMode(),
SizedBox(height: 14,),
SizedBox(
height: 14,
),
/// ///
OrderCommodity(orderInfo), OrderCommodity(orderInfo),
@ -142,6 +140,9 @@ class _Settlement extends State<Settlement> {
/// ///
payMethod(), payMethod(),
], ],
), ),
), ),
@ -157,55 +158,57 @@ class _Settlement extends State<Settlement> {
bottom: 0, bottom: 0,
left: 0, left: 0,
right: 0, right: 0,
child: Container( child:
height: 54.h, Container(
color: Colors.white, height: 54.h,
child: Row( color: Colors.white,
crossAxisAlignment: CrossAxisAlignment.center, child: Row(
children: [ crossAxisAlignment: CrossAxisAlignment.center,
Spacer(), children: [
Text( Spacer(),
S.of(context).heji, Text(
style: TextStyle( S.of(context).heji,
fontSize: 12.sp, style: TextStyle(
fontWeight: MyFontWeight.regular, fontSize: 12.sp,
color: Colors.black, fontWeight: MyFontWeight.regular,
), color: Colors.black,
), ),
Text( ),
"¥19.00", Text(
style: TextStyle( "¥19.00",
fontSize: 20.sp, style: TextStyle(
fontWeight: MyFontWeight.semi_bold, fontSize: 20.sp,
color: Color(0xFF32A060), fontWeight: MyFontWeight.semi_bold,
), color: Color(0xFF32A060),
), ),
SizedBox( ),
width: 28, SizedBox(width: 28,),
), GestureDetector(
GestureDetector( onTap: () {
onTap: () {},
child: RoundButton( },
width: 103.w, child: RoundButton(
height: 54.h, width: 103.w,
text: S.current.jiesuan, height: 54.h,
textColor: Colors.white, text: S.current.jiesuan,
fontWeight: MyFontWeight.regular, textColor: Colors.white,
backgroup: Color(0xFF32A060), fontWeight: MyFontWeight.regular,
fontSize: 16.sp, backgroup: Color(0xFF32A060),
padding: EdgeInsets.symmetric(vertical: 5.h), fontSize: 16.sp,
), padding: EdgeInsets.symmetric(vertical: 5.h),
),
),
],
), ),
], ),
), )
),
),
], ],
); );
} }
String title = ""; String title = "";
String center = ""; String center = "";
TextEditingController _vc = TextEditingController();
statusTitle() { statusTitle() {
if (isTakeOut == 0) { if (isTakeOut == 0) {
@ -309,11 +312,7 @@ class _Settlement extends State<Settlement> {
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), ),
height: 175.h, height: 175.h,
margin: EdgeInsets.only( margin: EdgeInsets.only(left: 16, right: 16, top: 15),
left: 16,
right: 16,
top: 15,
),
child: Stack( child: Stack(
children: [ children: [
Column( Column(
@ -334,40 +333,37 @@ class _Settlement extends State<Settlement> {
Expanded( Expanded(
flex: 1, flex: 1,
child: Container( child: Container(
height: 50.h, height: 50.h,
decoration: BoxDecoration( decoration: BoxDecoration(
image: selectedBtn == 0 image: selectedBtn == 0
? DecorationImage( ? DecorationImage(
image: image: AssetImage(
AssetImage("assets/image/order_btn1.png"), "assets/image/order_btn1.png"),
fit: BoxFit.fill, fit: BoxFit.fill,
) )
: null, : null,
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(8), topLeft: Radius.circular(8))),
), child: GestureDetector(
), onTap: () {
child: GestureDetector( setState(() {
onTap: () { selectedBtn = 0;
setState(() { });
selectedBtn = 0; },
}); child: Stack(
}, alignment: Alignment.center,
child: Stack( children: [
alignment: Alignment.center, Text(
children: [ S.of(context).daodianziqu,
Text( style: TextStyle(
S.of(context).daodianziqu, fontSize: 14.sp,
style: TextStyle( fontWeight: MyFontWeight.semi_bold,
fontSize: 14.sp, color: Colors.black,
fontWeight: MyFontWeight.semi_bold, ),
color: Colors.black,
), ),
), ],
], ),
), )),
),
),
), ),
Expanded( Expanded(
flex: 1, flex: 1,
@ -387,7 +383,7 @@ class _Settlement extends State<Settlement> {
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
Text( Text(
S.of(context).waimaipeisong, S.of(context).waimaipeisong,
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
fontWeight: MyFontWeight.regular, fontWeight: MyFontWeight.regular,
@ -445,39 +441,37 @@ class _Settlement extends State<Settlement> {
children: [ children: [
Row( Row(
children: [ children: [
Expanded( Expanded(child:Column(
child: Column( mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Text(
Text( storeInfo != null ? (storeInfo.storeName ?? "") : "",
"前进麦味·天然烘焙(凯德1818店)", overflow: TextOverflow.ellipsis,
overflow: TextOverflow.ellipsis, style: TextStyle(
style: TextStyle( fontSize: 14.sp,
fontSize: 14.sp, fontWeight: MyFontWeight.semi_bold,
fontWeight: MyFontWeight.semi_bold, color: Color(0xFF4C4C4C),
color: Color(0xFF4C4C4C),
),
),
SizedBox(
height: 4,
),
Text(
"武昌区中国铁建凯德1818蓝调步行街中北路109附33门牌号05",
overflow: TextOverflow.ellipsis,
maxLines: 2,
style: TextStyle(
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
color: Color(0xFF727272),
),
), ),
SizedBox( ),
height: 12, SizedBox(
height: 4,
),
Text(
storeInfo != null ? storeInfo.address : "",
overflow: TextOverflow.ellipsis,
maxLines: 2,
style: TextStyle(
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
color: Color(0xFF727272),
), ),
], ),
), SizedBox(
), height: 12,
),
],
),),
SizedBox( SizedBox(
width: 18, width: 18,
), ),
@ -489,58 +483,59 @@ class _Settlement extends State<Settlement> {
Image.asset( Image.asset(
"assets/image/map.png", "assets/image/map.png",
height: 61.h, height: 61.h,
width: 61.w, width:61.w,
),
],
),
Column(
children: [
RoundButton(
width: 41.w,
height: 13,
text: "距离您11m",
textColor: Color(0xFF34A262),
fontWeight: MyFontWeight.semi_bold,
radius: 7.5,
backgroup: Colors.white,
fontSize: 7.sp,
),
Image.asset(
"assets/image/landmark.png",
height: 24.h,
width: 24.w,
), ),
], ],
), ),
Column(children: [
RoundButton(
width: 41.w,
height: 13,
text: "距离您11m",
textColor:Color(0xFF34A262),
fontWeight: MyFontWeight.semi_bold,
radius:7.5,
backgroup:Colors.white,
fontSize:7.sp,
),
Image.asset(
"assets/image/landmark.png",
height: 24.h,
width:24.w,
),
],),
], ],
) )
], ],
), ),
Row( Row(
children: [ children: [
Expanded( Expanded(child: Text(
child: Text( S.of(context).yuliudianhua,
S.of(context).yuliudianhua, overflow: TextOverflow.ellipsis,
overflow: TextOverflow.ellipsis, style: TextStyle(
style: TextStyle( fontSize: 14.sp,
fontSize: 14.sp, fontWeight: MyFontWeight.regular,
fontWeight: MyFontWeight.regular, color: Color(0xFF4C4C4C),
color: Color(0xFF4C4C4C),
),
), ),
), )),
Text( Text(
"12309090909", storeInfo != null ? storeInfo.headMobile:"",
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
fontWeight: MyFontWeight.medium, fontWeight: MyFontWeight.medium,
color: Color(0xFF4C4C4C), color: Color(0xFF4C4C4C),
), ),
), ),
Image.asset( GestureDetector(
"assets/image/pen.png", onTap: (){
height: 14.h, showAlertDialog();
width: 14.w, },
child:Image.asset(
"assets/image/pen.png",
height:14.h,
width:14.w,
),
), ),
], ],
) )
@ -609,7 +604,7 @@ class _Settlement extends State<Settlement> {
); );
} }
Widget activityRemarks() { Widget activityRemarks(){
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -624,40 +619,29 @@ class _Settlement extends State<Settlement> {
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), ),
height: 86.h, height: 86.h,
margin: EdgeInsets.only( margin: EdgeInsets.only(left: 16, right: 16, top: 15),
left: 16, padding: EdgeInsets.only(left: 16, right: 16, top: 16),
right: 16,
top: 15,
),
padding: EdgeInsets.only(
left: 16,
right: 16,
top: 16,
),
child: Column( child: Column(
children: [ children: [
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Expanded( Expanded(flex: 1,child:Text(
flex: 1, S.of(context).youhuiquan,
child: Text( style: TextStyle(
S.of(context).youhuiquan, fontWeight: MyFontWeight.regular,
style: TextStyle( fontSize: 14.sp,
fontWeight: MyFontWeight.regular, color: Color(0xFF353535),
fontSize: 14.sp,
color: Color(0xFF353535),
),
), ),
), )),
Text( Text(
"满30减10", "满30减10",
textAlign: TextAlign.end, textAlign: TextAlign.end,
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Color(0xFF32A060), color: Color(0xFF32A060),
fontWeight: MyFontWeight.semi_bold, fontWeight: MyFontWeight.semi_bold
), ),
), ),
Icon( Icon(
@ -666,31 +650,27 @@ class _Settlement extends State<Settlement> {
), ),
], ],
), ),
SizedBox( SizedBox(height: 13,
height: 13,
), ),
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Expanded( Expanded(flex: 1,child:Text(
flex: 1, S.of(context).beizhu,
child: Text( style: TextStyle(
S.of(context).beizhu, fontWeight: MyFontWeight.regular,
style: TextStyle( fontSize: 14.sp,
fontWeight: MyFontWeight.regular, color: Color(0xFF353535),
fontSize: 14.sp,
color: Color(0xFF353535),
),
), ),
), )),
Text( Text(
"口味、面包硬度等", "口味、面包硬度等",
textAlign: TextAlign.end, textAlign: TextAlign.end,
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Color(0xFF353535), color: Color(0xFF353535),
fontWeight: MyFontWeight.semi_bold, fontWeight: MyFontWeight.semi_bold
), ),
), ),
Icon( Icon(
@ -704,7 +684,7 @@ class _Settlement extends State<Settlement> {
); );
} }
Widget payMethod() { Widget payMethod(){
return Container( return Container(
width: double.infinity, width: double.infinity,
margin: EdgeInsets.only( margin: EdgeInsets.only(
@ -741,14 +721,14 @@ class _Settlement extends State<Settlement> {
style: TextStyle( style: TextStyle(
fontSize: 16.sp, fontSize: 16.sp,
color: Colors.black, color: Colors.black,
fontWeight: MyFontWeight.regular, fontWeight:MyFontWeight.regular,
), ),
), ),
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
setState(() { setState(() {
checkIndex = 1; checkIndex =1;
}); });
}, },
child: Row( child: Row(
@ -761,19 +741,17 @@ class _Settlement extends State<Settlement> {
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Color(0xff353535), color: Color(0xff353535),
fontWeight: MyFontWeight.semi_bold, fontWeight: MyFontWeight.semi_bold
), ),
), ),
], ],
), ),
), ),
SizedBox( SizedBox(height: 10,),
height: 10,
),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
setState(() { setState(() {
checkIndex = 2; checkIndex =2;
}); });
}, },
child: Row( child: Row(
@ -786,15 +764,13 @@ class _Settlement extends State<Settlement> {
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Color(0xff353535), color: Color(0xff353535),
fontWeight: MyFontWeight.semi_bold, fontWeight: MyFontWeight.semi_bold,
), ),
), ),
], ],
), ),
), ),
SizedBox( SizedBox(height: 10,),
height: 10,
),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
setState(() { setState(() {
@ -815,7 +791,7 @@ class _Settlement extends State<Settlement> {
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Color(0xff353535), color: Color(0xff353535),
fontWeight: MyFontWeight.semi_bold, fontWeight: MyFontWeight.semi_bold,
), ),
), ),
), ),
@ -827,6 +803,27 @@ class _Settlement extends State<Settlement> {
); );
} }
showAlertDialog() {
//
showDialog(
barrierDismissible: false,
context: context,
builder: (context) {
return RenameDialog(
contentWidget: RenameDialogContent(
title: "请输入新的手机号码",
okBtnTap: () {
// print(
// "输入框中的文字为:${_vc.text}",
// );
},
vc: _vc,
cancelBtnTap: () {},
),
);
});
}
var checkIndex = 1; var checkIndex = 1;
Widget checkView(var index) { Widget checkView(var index) {

12
lib/view_widget/rename_dialog.dart

@ -0,0 +1,12 @@
import 'package:flutter/material.dart';
class RenameDialog extends AlertDialog {
RenameDialog({Widget contentWidget})
: super(
content: contentWidget,
contentPadding: EdgeInsets.zero,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
side: BorderSide(color: Colors.white, width: 3)),
);
}

104
lib/view_widget/rename_dialog_content.dart

@ -0,0 +1,104 @@
import 'package:flutter/material.dart';
import 'package:huixiang/generated/l10n.dart';
double btnHeight = 60;
double borderWidth = 2;
class RenameDialogContent extends StatefulWidget {
final String title;
final VoidCallback cancelBtnTap;
final VoidCallback okBtnTap;
final TextEditingController vc;
RenameDialogContent(
{@required this.title,
this.cancelBtnTap,
this.okBtnTap,
this.vc});
@override
_RenameDialogContentState createState() =>
_RenameDialogContentState();
}
class _RenameDialogContentState extends State<RenameDialogContent> {
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(top: 20),
height: 200,
width: 10000,
alignment: Alignment.bottomCenter,
child: Column(
children: [
Container(
alignment: Alignment.center,
child: Text(
widget.title,
style: TextStyle(color: Colors.grey),
)),
Spacer(),
Padding(
padding: EdgeInsets.fromLTRB(30, 0, 30, 0),
child: TextField(
style: TextStyle(color: Colors.black87),
controller: widget.vc,
decoration: InputDecoration(
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.black),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.black),
)),
),
),
Container(
// color: Colors.red,
height: btnHeight,
margin: EdgeInsets.fromLTRB(0, 30, 0, 0),
child: Column(
children: [
Container(
// 线
width: double.infinity,
color: Colors.white,
height: borderWidth,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
FlatButton(
onPressed: () {
widget.vc.text = "";
widget.cancelBtnTap();
Navigator.of(context).pop();
},
child: Text(
S.of(context).quxiao,
style: TextStyle(fontSize: 18, color: Colors.black),
),
),
Container(
// 线
width: borderWidth,
color: Colors.grey,
height: btnHeight - borderWidth - borderWidth,
),
FlatButton(
onPressed: () {
widget.okBtnTap();
Navigator.of(context).pop();
widget.vc.text = "";
},
child: Text(
S.of(context).queding,
style: TextStyle(fontSize:18, color: Colors.black),
)),
],
),
],
),
)
],
));
}
}
Loading…
Cancel
Save