You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
3.6 KiB
112 lines
3.6 KiB
|
|
import 'package:flutter/material.dart'; |
|
import 'package:huixiang/generated/l10n.dart'; |
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
|
class ReceiveSuccess extends StatelessWidget { |
|
@override |
|
Widget build(BuildContext context) { |
|
return SimpleDialog( |
|
titlePadding: EdgeInsets.all(10), |
|
backgroundColor: Colors.transparent, |
|
elevation: 0, |
|
shape: RoundedRectangleBorder( |
|
borderRadius: BorderRadius.circular(6), |
|
), |
|
children: <Widget>[ |
|
Stack( |
|
alignment: Alignment.topCenter, |
|
children: [ |
|
Container( |
|
margin: EdgeInsets.only(top: 40.h), |
|
decoration: BoxDecoration( |
|
color: Colors.white, |
|
borderRadius: BorderRadius.circular(8),), |
|
width: 218.w, |
|
height: 210.h, |
|
child: Column( |
|
children: [ |
|
Padding( |
|
padding: EdgeInsets.only(top: 50.h, bottom: 19.h), |
|
child: Text( |
|
S.of(context).lingquchenggong, |
|
style: TextStyle( |
|
color: Color(0xff353535), |
|
fontSize: 16.sp, |
|
fontWeight: FontWeight.bold, |
|
), |
|
), |
|
), |
|
Text( |
|
S.of(context).ninyichenggonglingquyouhuiquan, |
|
style: TextStyle( |
|
color: Color(0xff353535), |
|
fontSize: 14.sp, |
|
), |
|
), |
|
Row( |
|
mainAxisAlignment: MainAxisAlignment.center, |
|
children: [ |
|
GestureDetector( |
|
child: Text( |
|
S.of(context).kaquan, |
|
style: TextStyle( |
|
color: Color(0xFFFF7A1A), |
|
fontSize: 14.sp, |
|
fontWeight: FontWeight.bold, |
|
), |
|
), |
|
onTap: () { |
|
Navigator.of(context) |
|
.pushNamed('/router/mine_card'); |
|
}, |
|
), |
|
Text( |
|
S.of(context).zhongchakan, |
|
style: TextStyle( |
|
color: Color(0xff353535), |
|
fontSize: 14.sp, |
|
), |
|
), |
|
], |
|
), |
|
Padding( |
|
padding: EdgeInsets.only(top: 30.h), |
|
child: RoundButton( |
|
width: 130.w, |
|
height: 34.h, |
|
text: S.of(context).queren, |
|
textColor: Colors.white, |
|
fontSize: 12.sp, |
|
callback: () { |
|
Navigator.of(context).pop(); |
|
}, |
|
padding: EdgeInsets.only( |
|
top: 2.h, |
|
bottom: 2.h, |
|
left: 8.w, |
|
right: 8.w, |
|
), |
|
backgroup: Color(0xff32A060), |
|
), |
|
) |
|
], |
|
), |
|
), |
|
Image.asset( |
|
"assets/image/icon_order_success.png", |
|
fit: BoxFit.cover, |
|
width: 80.w, |
|
height: 80.h, |
|
), |
|
], |
|
) |
|
], |
|
); |
|
} |
|
|
|
|
|
|
|
} |