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: [ 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: 250.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: [ 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, ), ), ], ), 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.webp", fit: BoxFit.cover, width: 80, height: 80, ), ], ) ], ); } }