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.
136 lines
4.2 KiB
136 lines
4.2 KiB
import 'dart:ui'; |
|
|
|
import 'package:flutter/gestures.dart'; |
|
import 'package:flutter/material.dart'; |
|
import 'package:flutter/rendering.dart'; |
|
import 'package:huixiang/generated/l10n.dart'; |
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
import 'package:huixiang/utils/font_weight.dart'; |
|
import 'package:huixiang/view_widget/my_appbar.dart'; |
|
import 'package:flutter/cupertino.dart'; |
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
class ReportSuccess extends StatefulWidget { |
|
@override |
|
State<StatefulWidget> createState() { |
|
return _ReportSuccess(); |
|
} |
|
} |
|
|
|
class _ReportSuccess extends State<ReportSuccess> { |
|
ApiService apiService; |
|
int checkIndex = 0; |
|
|
|
@override |
|
void initState() { |
|
super.initState(); |
|
} |
|
|
|
@override |
|
Widget build(BuildContext context) { |
|
return Scaffold( |
|
appBar: MyAppBar( |
|
background: Color(0xFFFFFFFFF), |
|
leadingColor: Colors.black, |
|
title: "", |
|
titleSize: 18, |
|
titleColor: Colors.black, |
|
), |
|
body: Container( |
|
width: double.infinity, |
|
color: Color(0xFFFFFFFFF), |
|
padding: EdgeInsets.only(left: 16, top: 10, right: 16), |
|
child: Column( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
children: [ |
|
Container( |
|
margin: EdgeInsets.only(top: 36, bottom: 16), |
|
alignment: Alignment.center, |
|
child: Image.asset( |
|
"assets/image/icon_order_success.webp", |
|
fit: BoxFit.cover, |
|
width: 76, |
|
height: 76, |
|
), |
|
), |
|
Align( |
|
alignment: Alignment.center, |
|
child: Text( |
|
S.of(context).tijiaochenggong, |
|
style: TextStyle( |
|
fontSize: 21.sp, |
|
fontWeight: FontWeight.bold, |
|
color: Color(0xFF353535), |
|
), |
|
), |
|
), |
|
SizedBox( |
|
height: 11, |
|
), |
|
RichText( |
|
textAlign: TextAlign.center, |
|
text: TextSpan( |
|
text: S.of(context).jubaotishi, |
|
style: TextStyle( |
|
fontSize: 12.sp, |
|
height: 1.5, |
|
fontWeight: MyFontWeight.regular, |
|
color: Color(0xFF727272), |
|
), |
|
children: [ |
|
TextSpan( |
|
text:S.of(context).xitongxiaoxi, |
|
recognizer: TapGestureRecognizer() |
|
..onTap = () { |
|
Navigator.of(context) |
|
.pushNamed('/router/system_msg_page'); |
|
}, |
|
style: TextStyle( |
|
fontSize: 12.sp, |
|
height: 1.5, |
|
fontWeight: MyFontWeight.semi_bold, |
|
color: Color(0xFF32A060), |
|
), |
|
), |
|
TextSpan( |
|
text: "查看,请及时关注,谢谢!", |
|
style: TextStyle( |
|
fontSize: 12.sp, |
|
height: 1.5, |
|
fontWeight: MyFontWeight.regular, |
|
color: Color(0xFF727272), |
|
), |
|
), |
|
]), |
|
), |
|
SizedBox( |
|
height: 43, |
|
), |
|
GestureDetector( |
|
onTap: () { |
|
Navigator.of(context).pop(); |
|
}, |
|
child: Container( |
|
height: 54.h, |
|
width: double.infinity, |
|
alignment: Alignment.center, |
|
decoration: BoxDecoration( |
|
color: Color(0xFF32A060), |
|
borderRadius: BorderRadius.circular(8), |
|
), |
|
child: Text( |
|
S.of(context).fanhuishequn, |
|
style: TextStyle( |
|
fontSize: 16.sp, |
|
fontWeight: FontWeight.bold, |
|
color: Color(0xFFFFFFFF), |
|
), |
|
), |
|
)), |
|
], |
|
), |
|
), |
|
); |
|
} |
|
}
|
|
|