|
|
@ -132,12 +132,13 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
|
|
|
|
|
|
|
|
Widget integralTask() { |
|
|
|
Widget integralTask() { |
|
|
|
return Container( |
|
|
|
return Container( |
|
|
|
width: double.infinity, |
|
|
|
width: MediaQuery.of(context).size.width - 32, |
|
|
|
|
|
|
|
height: 300.h, |
|
|
|
margin: EdgeInsets.all(16), |
|
|
|
margin: EdgeInsets.all(16), |
|
|
|
padding: EdgeInsets.fromLTRB(10.w, 20.h, 10.w, 20.h), |
|
|
|
padding: EdgeInsets.fromLTRB(10.w, 20.h, 10.w, 20.h), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(8)), |
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
boxShadow: [ |
|
|
|
boxShadow: [ |
|
|
|
BoxShadow( |
|
|
|
BoxShadow( |
|
|
|
color: Colors.black.withAlpha(12), |
|
|
|
color: Colors.black.withAlpha(12), |
|
|
@ -162,9 +163,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
Expanded( |
|
|
|
child: AspectRatio( |
|
|
|
child: Container( |
|
|
|
aspectRatio: 1.5, |
|
|
|
|
|
|
|
child: Swiper( |
|
|
|
child: Swiper( |
|
|
|
loop: false, |
|
|
|
loop: false, |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
@ -190,7 +190,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
(signInfo.taskList.length % 3 > 0 ? 1 : 0))) |
|
|
|
(signInfo.taskList.length % 3 > 0 ? 1 : 0))) |
|
|
|
: 1), |
|
|
|
: 1), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
flex: 1, |
|
|
|
|
|
|
|
) |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
@ -293,10 +294,10 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
backgroup: task.limitDay == (task.complateNum ?? task.conplateNum) |
|
|
|
backgroup: task.limitDay == (task.complateNum ?? task.conplateNum) |
|
|
|
? Color(0xFFA0A0A0) |
|
|
|
? Color(0xFFA0A0A0) |
|
|
|
: Color(0xFF32A060), |
|
|
|
: Color(0xFF32A060), |
|
|
|
radius: 12, |
|
|
|
radius: 12.w, |
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
padding: EdgeInsets.fromLTRB(12.w, 4.h, 12.w, 4.h), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 4.h, horizontal: 12.w), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
@ -306,7 +307,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
Widget signInItem(position) { |
|
|
|
Widget signInItem(position) { |
|
|
|
if (position == 6) { |
|
|
|
if (position == 6) { |
|
|
|
return Container( |
|
|
|
return Container( |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
padding: EdgeInsets.all(4), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Color(0xFFF0F0F2), |
|
|
|
color: Color(0xFFF0F0F2), |
|
|
|
borderRadius: BorderRadius.circular(4), |
|
|
|
borderRadius: BorderRadius.circular(4), |
|
|
@ -317,7 +318,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
Text( |
|
|
@ -328,11 +329,9 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 10.h, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Container( |
|
|
|
Container( |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
|
|
|
|
height: 30.h, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
S.of(context).shenmijifendali, |
|
|
|
S.of(context).shenmijifendali, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
@ -342,6 +341,14 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
"", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
@ -350,8 +357,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
child: Image.asset( |
|
|
|
child: Image.asset( |
|
|
|
"assets/image/icon_gold_blessing.png", |
|
|
|
"assets/image/icon_gold_blessing.png", |
|
|
|
width: 59, |
|
|
|
width: 59.w, |
|
|
|
height: 59, |
|
|
|
height: 59.h, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -388,8 +395,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
child: Image.asset( |
|
|
|
child: Image.asset( |
|
|
|
"assets/image/icon_gold_coin.png", |
|
|
|
"assets/image/icon_gold_coin.png", |
|
|
|
width: 30, |
|
|
|
width: 30.w, |
|
|
|
height: 30, |
|
|
|
height: 30.h, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
Container( |
|
|
@ -404,13 +411,14 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
? "+${signInfo.rewardList[position]}" |
|
|
|
? "+${signInfo.rewardList[position]}" |
|
|
|
: "+10", |
|
|
|
: "+10", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
color: (signInfo != null && |
|
|
|
color: (signInfo != null && |
|
|
|
signInfo.signInList != null && |
|
|
|
signInfo.signInList != null && |
|
|
|
signInfo.signInList.length > position) |
|
|
|
signInfo.signInList.length > position) |
|
|
|
? Colors.white |
|
|
|
? Colors.white |
|
|
|
: Color(0xFF727272), |
|
|
|
: Color(0xFF727272), |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
fontWeight: MyFontWeight.regular), |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -424,7 +432,7 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
return Container( |
|
|
|
return Container( |
|
|
|
width: double.infinity, |
|
|
|
width: double.infinity, |
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.w, vertical: 6.h), |
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.w, vertical: 6.h), |
|
|
|
padding: EdgeInsets.fromLTRB(20.w, 20.h, 20.w, 20.h), |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
@ -467,9 +475,9 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
crossAxisCount: 4, |
|
|
|
crossAxisCount: 4, |
|
|
|
shrinkWrap: true, |
|
|
|
shrinkWrap: true, |
|
|
|
itemCount: 7, |
|
|
|
itemCount: 7, |
|
|
|
mainAxisSpacing: 8.h, |
|
|
|
mainAxisSpacing: 8, |
|
|
|
crossAxisSpacing: 18.w, |
|
|
|
crossAxisSpacing: 18, |
|
|
|
padding: EdgeInsets.only(bottom: 32.h), |
|
|
|
padding: EdgeInsets.only(bottom: 32), |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
itemBuilder: (context, position) { |
|
|
|
itemBuilder: (context, position) { |
|
|
|
return signInItem(position); |
|
|
|
return signInItem(position); |
|
|
@ -483,8 +491,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
child: RoundButton( |
|
|
|
child: RoundButton( |
|
|
|
width: 106, |
|
|
|
width: 106.w, |
|
|
|
height: 34, |
|
|
|
height: 34.h, |
|
|
|
text: (signInfo != null && signInfo.todayHasSignin) |
|
|
|
text: (signInfo != null && signInfo.todayHasSignin) |
|
|
|
? S.of(context).yiqiandao |
|
|
|
? S.of(context).yiqiandao |
|
|
|
: S.of(context).lijiqiandao, |
|
|
|
: S.of(context).lijiqiandao, |
|
|
@ -494,8 +502,8 @@ class _IntegralPage extends State<IntegralPage> { |
|
|
|
: Color(0xFF32A060), |
|
|
|
: Color(0xFF32A060), |
|
|
|
fontSize: 16.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
padding: EdgeInsets.fromLTRB(16.w, 6.h, 16.w, 6.h), |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 6.h), |
|
|
|
radius: 4, |
|
|
|
radius: 4.w, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|