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.

124 lines
4.1 KiB

4 years ago
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(
3 years ago
borderRadius: BorderRadius.circular(6),
4 years ago
),
children: <Widget>[
Stack(
alignment: Alignment.topCenter,
children: [
Container(
margin: EdgeInsets.only(top: 40.h),
3 years ago
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),),
4 years ago
width: 218.w,
3 years ago
height: 250.h,
4 years ago
child: Column(
children: [
Padding(
padding: EdgeInsets.only(top: 50.h, bottom: 19.h),
child: Text(
S
.of(context)
.lingquchenggong,
4 years ago
style: TextStyle(
color: Color(0xff353535),
fontSize: 16.sp,
fontWeight: FontWeight.bold,
),
),
),
Text(
3 years ago
S.of(context).ninyichenggonglingquyouhuiquan,
4 years ago
style: TextStyle(
color: Color(0xff353535),
fontSize: 14.sp,
),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"${S.of(context).main_menu4}-",
style: TextStyle(
color: Color(0xff353535),
fontSize: 14.sp,
),
),
4 years ago
GestureDetector(
child: Text(
"${S
.of(context)
.youhuiquan}",
4 years ago
style: TextStyle(
3 years ago
color: Color(0xFFFF7A1A),
4 years ago
fontSize: 14.sp,
fontWeight: FontWeight.bold,
),
),
onTap: () {
Navigator.of(context).pushNamed('/router/coupon_page');
4 years ago
},
),
Text(
S
.of(context)
.zhongchakan,
4 years ago
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,
4 years ago
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.webp",
4 years ago
fit: BoxFit.cover,
width: 80,
height: 80,
4 years ago
),
],
)
],
);
}
}