From 9a92bdc17203b54c2c5952b406ed63da6518fb05 Mon Sep 17 00:00:00 2001 From: datang Date: Thu, 15 Sep 2022 10:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/loading.dart | 22 ++++++++++++---------- lib/ui/login/login_page.dart | 4 ---- lib/ui/widget/appdialog.dart | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/lib/ui/loading.dart b/lib/ui/loading.dart index aeae694..1b94932 100644 --- a/lib/ui/loading.dart +++ b/lib/ui/loading.dart @@ -19,7 +19,6 @@ class Loading extends StatefulWidget { } class _LoadingState extends State { - Future initialAll() async { await HiveStore.init(); } @@ -32,7 +31,10 @@ class _LoadingState extends State { if (kDebugMode) { print('env :$env'); } - DevEV.instance.setEnvironment( context, environment: env == 'dev',); + DevEV.instance.setEnvironment( + context, + environment: env == 'dev', + ); Future.delayed(const Duration(milliseconds: 1000), () async { await initialAll(); if (!await userProvider.init()) { @@ -51,16 +53,16 @@ class _LoadingState extends State { //启动图片 return Scaffold( backgroundColor: Colors.white, - body:Stack( + body: Stack( children: [ Positioned( bottom: 158.w, left: 143.w, - child: Image.asset( - Assets.images.start.path,width:434.sp,height:148.sp , fit: BoxFit.fill),), + child: Image.asset(Assets.images.start.path, + width: 434.sp, height: 148.sp, fit: BoxFit.fill), + ), ], - )); - - - }} - + ), + ); + } +} diff --git a/lib/ui/login/login_page.dart b/lib/ui/login/login_page.dart index 6341349..bb37d72 100644 --- a/lib/ui/login/login_page.dart +++ b/lib/ui/login/login_page.dart @@ -134,7 +134,6 @@ class _LoginPageState extends State { } else { if (_lastTap != null && DateTime.now().difference(_lastTap!).inSeconds < 2) { - // BotToast.showText(text: "过快"); return; } _lastTap = DateTime.now(); @@ -143,10 +142,7 @@ class _LoginPageState extends State { 'code': _smsCodeController.text }); if (base.code == 0) { - print("123123${base.data['token']}"); await UserTool.userProvider.setToken(base.data['token']); - // print(a); - // print("4567899"); Get.offAll(const TabNavigator()); } else { CloudToast.show(base.msg); diff --git a/lib/ui/widget/appdialog.dart b/lib/ui/widget/appdialog.dart index 662fc8f..97133db 100644 --- a/lib/ui/widget/appdialog.dart +++ b/lib/ui/widget/appdialog.dart @@ -119,7 +119,7 @@ _getVip() { TextSpan( children: [ TextSpan( - text: "03", + text: "07", style: TextStyle( color: const Color(0xFFFFEAB0), fontSize: 56.sp,