|
|
|
@ -12,6 +12,7 @@ import 'package:huixiang/retrofit/data/sign_info.dart';
|
|
|
|
|
import 'package:huixiang/retrofit/data/task.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/user_info.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:huixiang/view_widget/round_button.dart'; |
|
|
|
|
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; |
|
|
|
@ -156,7 +157,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
S.of(context).zuorenwudejifen, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -250,7 +251,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
task.name, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -263,7 +264,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
"+${double.tryParse(task.rewardValue).toInt()}", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -275,7 +276,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
"${task.complateNum ?? task.conplateNum}/${task.limitDay}"), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -324,7 +325,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
@ -380,7 +381,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
? Colors.white |
|
|
|
|
: Color(0xFF353535), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
@ -409,7 +410,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
? Colors.white |
|
|
|
|
: Color(0xFF727272), |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: FontWeight.w400), |
|
|
|
|
fontWeight: MyFontWeight.regular), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
@ -443,7 +444,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
Text( |
|
|
|
|
S.of(context).qiandaolingjifen, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
@ -454,7 +455,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
Text( |
|
|
|
|
S.of(context).lianxuqiandaolingqushuangbeijifen, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
fontSize: 11.sp, |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
), |
|
|
|
@ -492,7 +493,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
? Colors.grey |
|
|
|
|
: Color(0xFF32A060), |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
padding: EdgeInsets.fromLTRB(16.w, 6.h, 16.w, 6.h), |
|
|
|
|
radius: 4, |
|
|
|
|
), |
|
|
|
@ -537,7 +538,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
Text( |
|
|
|
|
signInfo != null ? "${signInfo.point}" : "0", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
fontSize: 21.sp, |
|
|
|
|
color: Colors.white, |
|
|
|
|
), |
|
|
|
@ -549,7 +550,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
S.of(context).wodejifenzhi, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFFF2F2F2), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
@ -589,7 +590,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
? "${signInfo.rank.rankName.replaceAll("会员", "")}" |
|
|
|
|
: "", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
fontSize: 21.sp, |
|
|
|
|
color: Colors.white, |
|
|
|
|
), |
|
|
|
@ -605,7 +606,7 @@ class _IntegralPage extends State<IntegralPage> {
|
|
|
|
|
S.of(context).wodehuiyuandengji, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFFF2F2F2), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|