|
|
|
@ -7,6 +7,13 @@ import 'package:shared_preferences/shared_preferences.dart';
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
|
|
|
|
|
class SignView extends StatelessWidget { |
|
|
|
|
final bool isSigned; |
|
|
|
|
final Function setSigned; |
|
|
|
|
|
|
|
|
|
SignView( |
|
|
|
|
this.isSigned, |
|
|
|
|
this.setSigned, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
@ -37,7 +44,10 @@ class SignView extends StatelessWidget {
|
|
|
|
|
value.getString('token') == "") { |
|
|
|
|
LoginTipsDialog().show(context); |
|
|
|
|
} else { |
|
|
|
|
Navigator.of(context).pushNamed('/router/integral_page'); |
|
|
|
|
Navigator.of(context).pushNamed('/router/integral_page') |
|
|
|
|
.then((value) => { |
|
|
|
|
if (value != null) setSigned(value), |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -94,7 +104,7 @@ class SignView extends StatelessWidget {
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
S.of(context).quqiandao, |
|
|
|
|
isSigned ? S.of(context).yiqiandao : S.of(context).quqiandao, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|