@ -38,7 +38,7 @@ class _AccountManagerPageState extends State<AccountManagerPage> {
),
onPressed: () {
Get.offAll(SignInPage());
Get.offAll(()=>SignInPage());
},
],
@ -81,7 +81,7 @@ class _SettingsPageState extends State<SettingsPage> {
userProvider.logout();
Get.offAll(TabNavigator());
Get.offAll(()=>TabNavigator());
@ -94,7 +94,7 @@ class _SignInPageState extends State<SignInPage> {
if (response.data['choose'] == 1) {
userProvider.setLogin(response.data['token']);
cancel();
} else {
signUpProvider.setTel(_phone.text);
@ -86,7 +86,7 @@ class _SignUpVerifyPageState extends State<SignUpVerifyPage> {
signUpProvider.setName(_nameController.text);
signUpProvider.setIdNumber(_idNumberController.text);
bool result = await SignFunc.signUp();
if (result) Get.offAll(TabNavigator());
if (result) Get.offAll(()=>TabNavigator());
}
elevation: 0,
@ -54,7 +54,7 @@ class _SplashPageState extends State<SplashPage> {
void initState() {
super.initState();
PowerLogger.start(context, debug: DeveloperUtil.dev);
_initOp().then((value) => Get.offAll(TabNavigator()));
_initOp().then((value) => Get.offAll(()=>TabNavigator()));
@override
@ -11,6 +11,7 @@ enum ImageType {
assets, //资源目录
@Deprecated("cached_image_wrapper need to be cleaned.")
class CachedImageWrapper extends StatelessWidget {
final String url;
final double width;