|
|
|
@ -83,7 +83,7 @@ class _WelfareExchange extends State<WelfareExchange> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
creditGoods() async { |
|
|
|
|
EasyLoading.show(status: S.current.zhengzaijiazai); |
|
|
|
|
// EasyLoading.show(status: S.current.zhengzaijiazai); |
|
|
|
|
|
|
|
|
|
final SharedPreferences value = await SharedPreferences.getInstance(); |
|
|
|
|
apiService = ApiService(Dio(), |
|
|
|
@ -188,7 +188,7 @@ class _WelfareExchange extends State<WelfareExchange> {
|
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
alignment: Alignment.centerRight, |
|
|
|
|
margin: EdgeInsets.only(left: 10), |
|
|
|
|
margin: EdgeInsets.only(left: 10.w), |
|
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.arrow_back_ios, |
|
|
|
@ -198,28 +198,28 @@ class _WelfareExchange extends State<WelfareExchange> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
flexibleSpace: FlexibleSpaceBar( |
|
|
|
|
background: Stack( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
// padding: EdgeInsets.only(top: 40.h), |
|
|
|
|
height: 172.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
// border: Border.all(color: Colors.white,width: 0.5), |
|
|
|
|
color: Color(0xFF277D4B), |
|
|
|
|
shape: BoxShape.rectangle, |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
bottomRight: Radius.circular(40), |
|
|
|
|
bottomLeft: Radius.circular(40), |
|
|
|
|
background:Stack( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
// padding: EdgeInsets.only(top: 40.h), |
|
|
|
|
height: 172.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
// border: Border.all(color: Colors.white,width: 0.5), |
|
|
|
|
color: Color(0xFF277D4B), |
|
|
|
|
shape: BoxShape.rectangle, |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
bottomRight: Radius.circular(40.r), |
|
|
|
|
bottomLeft: Radius.circular(40.r), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.topCenter, |
|
|
|
|
margin: EdgeInsets.only(top: 106.h), |
|
|
|
|
child: pointUser(), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.topCenter, |
|
|
|
|
margin: EdgeInsets.only(top: 110.h), |
|
|
|
|
child: pointUser(), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
expandedHeight: 258.h, |
|
|
|
|
bottom: PreferredSize( |
|
|
|
|
preferredSize: Size(double.infinity, 0), |
|
|
|
@ -288,7 +288,7 @@ class _WelfareExchange extends State<WelfareExchange> {
|
|
|
|
|
return Container( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Colors.white, |
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)), |
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4.r)), |
|
|
|
|
boxShadow: [ |
|
|
|
|
BoxShadow( |
|
|
|
|
color: Colors.black.withAlpha(12), |
|
|
|
@ -410,26 +410,26 @@ class _WelfareExchange extends State<WelfareExchange> {
|
|
|
|
|
SizedBox( |
|
|
|
|
height: 4.h, |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
(userInfo != null) ? "${userInfo.points}" : "", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
Expanded(child: Row( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
(userInfo != null) ? "${userInfo.points}" : "", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 6, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_gold_coin.webp", |
|
|
|
|
width: 18, |
|
|
|
|
height: 18, |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
SizedBox( |
|
|
|
|
width: 6.w, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_gold_coin.webp", |
|
|
|
|
width: 18, |
|
|
|
|
height: 18, |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
)) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|