|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:huixiang/generated/l10n.dart';
|
|
|
|
import 'package:huixiang/utils/font_weight.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),
|
|
|
|
image: DecorationImage(
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
image: AssetImage("assets/image/pop_background.webp"),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
width: 269.w,
|
|
|
|
height: 300.h,
|
|
|
|
padding: EdgeInsets.only(bottom: 13.h),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
SizedBox(height: 8.h,),
|
|
|
|
Image.asset(
|
|
|
|
"assets/image/icon_order_success.webp",
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: 56,
|
|
|
|
height: 56,
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(top:7.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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height:8.h,),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"${S.of(context).main_menu4}-",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xff353535),
|
|
|
|
fontSize: 14.sp,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
child: Text(
|
|
|
|
"${S.of(context).youhuiquan}",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xFFFF7A1A),
|
|
|
|
fontSize: 14.sp,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.of(context)
|
|
|
|
.pushNamed('/router/coupon_page');
|
|
|
|
},
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
S.of(context).zhongchakan,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xff353535),
|
|
|
|
fontSize: 14.sp,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
RoundButton(
|
|
|
|
width: 229.w,
|
|
|
|
height: 34.h,
|
|
|
|
text: S.of(context).queren,
|
|
|
|
textColor: Color(0xFF188451),
|
|
|
|
fontWeight: MyFontWeight.medium,
|
|
|
|
fontSize: 16.sp,
|
|
|
|
radius: 17.w,
|
|
|
|
callback: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
backgroup: Color(0xFFFFFFFF),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/image/icon_order_success.webp",
|
|
|
|
// fit: BoxFit.cover,
|
|
|
|
// width: 80,
|
|
|
|
// height: 80,
|
|
|
|
// ),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|