get api change

hmxc
小赖 4 years ago
parent 66e75c1605
commit 3d110b1c3a

@ -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> {
),
onPressed: () {
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();
Get.offAll(TabNavigator());
Get.offAll(()=>TabNavigator());
} else {
cancel();
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;

Loading…
Cancel
Save