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
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(
|
||
|
borderRadius: BorderRadius.all(Radius.circular(6)),
|
||
|
),
|
||
|
children: <Widget>[
|
||
|
Stack(
|
||
|
alignment: Alignment.topCenter,
|
||
|
children: [
|
||
|
Container(
|
||
|
margin: EdgeInsets.only(top: 40.h),
|
||
|
decoration: new BoxDecoration(
|
||
|
color: Colors.white,
|
||
|
borderRadius: BorderRadius.all(Radius.circular(8))),
|
||
|
width: 218.w,
|
||
|
height: 210.h,
|
||
|
child: Column(
|
||
|
children: [
|
||
|
Padding(
|
||
|
padding: EdgeInsets.only(top: 50.h, bottom: 19.h),
|
||
|
child: Text(
|
||
|
"领取成功",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xff353535),
|
||
|
fontSize: 16.sp,
|
||
|
fontWeight: FontWeight.bold,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
Text(
|
||
|
"您已成功领取优惠劵,请在",
|
||
|
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(
|
||
|
"中查看",
|
||
|
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,
|
||
|
),
|
||
|
],
|
||
|
)
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|