import 'package:flutter/material.dart'; import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/view_widget/my_appbar.dart'; import 'package:huixiang/view_widget/round_button.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class WriteOffSuccessPage extends StatefulWidget { @override State createState() { return _WriteOffSuccessPage(); } } class _WriteOffSuccessPage extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: MyAppBar( title: S.of(context).hexiaomaxiangqing, titleColor: Colors.black, titleSize: 18.sp, background: Color(0xFFFAFAFA), leadingColor: Colors.black, ), body: Container( alignment: Alignment.center, child: Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [ SizedBox( height: 46.h, ), Image.asset( "assets/image/icon_order_success.png", width: 76.w, height: 76.h, fit: BoxFit.contain, ), SizedBox( height: 16.h, ), Text( S.of(context).hexiaochenggong, style: TextStyle( color: Color(0xFF353535), fontSize: 21.sp, fontWeight: FontWeight.bold), ), SizedBox( height: 12.h, ), Text( S.of(context).dangqianshangpinduihuanhexiaoma, style: TextStyle( color: Color(0xFF727272), fontSize: 12.sp, fontWeight: FontWeight.bold), ), SizedBox( height: 40.h, ), Container( margin: EdgeInsets.only(left: 20.w, right: 20.w), child: RoundButton( text: S.of(context).fanhuiduihuanlishi, textColor: Colors.white, backgroup: Color(0xFF32A060), radius: 4, fontWeight: FontWeight.bold, fontSize: 16.sp, padding: EdgeInsets.only(top: 12.h, bottom: 12.h), ), ) ], ), ), ); } }