diff --git a/lib/pages/setting_page/account_manager_page.dart b/lib/pages/setting_page/account_manager_page.dart index 6b33d5da..477cfcfe 100644 --- a/lib/pages/setting_page/account_manager_page.dart +++ b/lib/pages/setting_page/account_manager_page.dart @@ -38,7 +38,7 @@ class _AccountManagerPageState extends State { ), ), onPressed: () { - Get.offAll(SignInPage()); + Get.offAll(()=>SignInPage()); }, ), ], diff --git a/lib/pages/setting_page/settings_page.dart b/lib/pages/setting_page/settings_page.dart index 715ba1dd..3c5a581d 100644 --- a/lib/pages/setting_page/settings_page.dart +++ b/lib/pages/setting_page/settings_page.dart @@ -81,7 +81,7 @@ class _SettingsPageState extends State { ), onPressed: () { userProvider.logout(); - Get.offAll(TabNavigator()); + Get.offAll(()=>TabNavigator()); }, ), ], diff --git a/lib/pages/sign/sign_in_page.dart b/lib/pages/sign/sign_in_page.dart index 0f7616dd..181d3604 100644 --- a/lib/pages/sign/sign_in_page.dart +++ b/lib/pages/sign/sign_in_page.dart @@ -94,7 +94,7 @@ class _SignInPageState extends State { if (response.data['choose'] == 1) { userProvider.setLogin(response.data['token']); cancel(); - Get.offAll(TabNavigator()); + Get.offAll(()=>TabNavigator()); } else { cancel(); signUpProvider.setTel(_phone.text); diff --git a/lib/pages/sign/sign_up/sign_up_verify_page.dart b/lib/pages/sign/sign_up/sign_up_verify_page.dart index c1f1c437..7bb01dcc 100644 --- a/lib/pages/sign/sign_up/sign_up_verify_page.dart +++ b/lib/pages/sign/sign_up/sign_up_verify_page.dart @@ -86,7 +86,7 @@ class _SignUpVerifyPageState extends State { 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, diff --git a/lib/pages/splash/splash_page.dart b/lib/pages/splash/splash_page.dart index a1c4b0c9..e4df3c08 100644 --- a/lib/pages/splash/splash_page.dart +++ b/lib/pages/splash/splash_page.dart @@ -54,7 +54,7 @@ class _SplashPageState extends State { void initState() { super.initState(); PowerLogger.start(context, debug: DeveloperUtil.dev); - _initOp().then((value) => Get.offAll(TabNavigator())); + _initOp().then((value) => Get.offAll(()=>TabNavigator())); } @override diff --git a/lib/widget/cached_image_wrapper.dart b/lib/widget/cached_image_wrapper.dart index f5e66eb5..944acc76 100644 --- a/lib/widget/cached_image_wrapper.dart +++ b/lib/widget/cached_image_wrapper.dart @@ -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;