get api change

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

@ -38,7 +38,7 @@ class _AccountManagerPageState extends State<AccountManagerPage> {
), ),
), ),
onPressed: () { onPressed: () {
Get.offAll(SignInPage()); Get.offAll(()=>SignInPage());
}, },
), ),
], ],

@ -81,7 +81,7 @@ class _SettingsPageState extends State<SettingsPage> {
), ),
onPressed: () { onPressed: () {
userProvider.logout(); userProvider.logout();
Get.offAll(TabNavigator()); Get.offAll(()=>TabNavigator());
}, },
), ),
], ],

@ -94,7 +94,7 @@ class _SignInPageState extends State<SignInPage> {
if (response.data['choose'] == 1) { if (response.data['choose'] == 1) {
userProvider.setLogin(response.data['token']); userProvider.setLogin(response.data['token']);
cancel(); cancel();
Get.offAll(TabNavigator()); Get.offAll(()=>TabNavigator());
} else { } else {
cancel(); cancel();
signUpProvider.setTel(_phone.text); signUpProvider.setTel(_phone.text);

@ -86,7 +86,7 @@ class _SignUpVerifyPageState extends State<SignUpVerifyPage> {
signUpProvider.setName(_nameController.text); signUpProvider.setName(_nameController.text);
signUpProvider.setIdNumber(_idNumberController.text); signUpProvider.setIdNumber(_idNumberController.text);
bool result = await SignFunc.signUp(); bool result = await SignFunc.signUp();
if (result) Get.offAll(TabNavigator()); if (result) Get.offAll(()=>TabNavigator());
} }
}, },
elevation: 0, elevation: 0,

@ -54,7 +54,7 @@ class _SplashPageState extends State<SplashPage> {
void initState() { void initState() {
super.initState(); super.initState();
PowerLogger.start(context, debug: DeveloperUtil.dev); PowerLogger.start(context, debug: DeveloperUtil.dev);
_initOp().then((value) => Get.offAll(TabNavigator())); _initOp().then((value) => Get.offAll(()=>TabNavigator()));
} }
@override @override

@ -11,6 +11,7 @@ enum ImageType {
assets, // assets, //
} }
@Deprecated("cached_image_wrapper need to be cleaned.")
class CachedImageWrapper extends StatelessWidget { class CachedImageWrapper extends StatelessWidget {
final String url; final String url;
final double width; final double width;

Loading…
Cancel
Save