Browse Source

fix error

boyrobot 9 months ago
parent
commit
6cd8fba9eb
5 changed files with 58 additions and 55 deletions
  1. 1 6
      android/app/build.gradle
  2. 1 1
      android/build.gradle
  3. 4 4
      lib/pages/login_page.dart
  4. 48 40
      pubspec.lock
  5. 4 4
      pubspec.yaml

+ 1 - 6
android/app/build.gradle

@@ -59,9 +59,4 @@ flutter {
     source '../..'
 }
 
-dependencies {
-    // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-    // testImplementation 'junit:junit:4.12'
-    // androidTestImplementation 'androidx.test:runner:1.1.1'
-    // androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
-}
+

+ 1 - 1
android/build.gradle

@@ -9,7 +9,7 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.android.tools.build:gradle:4.1.0'
+        classpath 'com.android.tools.build:gradle:7.2.2'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
     }
 }

+ 4 - 4
lib/pages/login_page.dart

@@ -215,7 +215,7 @@ class _LoginPageState extends State<LoginPage> {
             Fluttertoast.showToast(
                 msg: "登录成功",
                 gravity: ToastGravity.CENTER,
-                timeInSecForIos: 2,
+                timeInSecForIosWeb: 2,
                 textColor: Colors.white,
                 fontSize: 14.0);
             loginStatus.value = true;
@@ -227,7 +227,7 @@ class _LoginPageState extends State<LoginPage> {
             Fluttertoast.showToast(
                 msg: "账号或密码错误",
                 gravity: ToastGravity.CENTER,
-                timeInSecForIos: 2,
+                timeInSecForIosWeb: 2,
                 textColor: Colors.white,
                 fontSize: 14.0);
           }
@@ -247,7 +247,7 @@ class _LoginPageState extends State<LoginPage> {
       Fluttertoast.showToast(
           msg: "请输入用户名",
           gravity: ToastGravity.CENTER,
-          timeInSecForIos: 2,
+          timeInSecForIosWeb: 2,
           textColor: Colors.white,
           fontSize: 14.0);
 
@@ -256,7 +256,7 @@ class _LoginPageState extends State<LoginPage> {
       Fluttertoast.showToast(
           msg: "请输入密码",
           gravity: ToastGravity.CENTER,
-          timeInSecForIos: 2,
+          timeInSecForIosWeb: 2,
           textColor: Colors.white,
           fontSize: 14.0);
       return false;

+ 48 - 40
pubspec.lock

@@ -1,6 +1,14 @@
 # Generated by pub
 # See https://dart.dev/tools/pub/glossary#lockfile
 packages:
+  args:
+    dependency: transitive
+    description:
+      name: args
+      sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
+      url: "https://pub.dev"
+    source: hosted
+    version: "2.4.2"
   async:
     dependency: transitive
     description:
@@ -25,14 +33,6 @@ packages:
       url: "https://pub.dev"
     source: hosted
     version: "1.2.1"
-  charcode:
-    dependency: transitive
-    description:
-      name: charcode
-      sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306
-      url: "https://pub.dev"
-    source: hosted
-    version: "1.3.1"
   clock:
     dependency: transitive
     description:
@@ -90,10 +90,10 @@ packages:
     dependency: "direct main"
     description:
       name: flutter_svg
-      sha256: "9ac1967e2f72a08af11b05b39167920f90d043cf67163d13a544a358c8f31afa"
+      sha256: f991fdb1533c3caeee0cdc14b04f50f0c3916f0dbcbc05237ccbe4e3c6b93f3f
       url: "https://pub.dev"
     source: hosted
-    version: "0.22.0"
+    version: "2.0.5"
   flutter_test:
     dependency: "direct dev"
     description: flutter
@@ -108,26 +108,26 @@ packages:
     dependency: "direct main"
     description:
       name: fluttertoast
-      sha256: "1d537fc5695bc8fe34572c3d0a8738330c689703ba206ae93ba4cd99b0349d9f"
+      sha256: "474f7d506230897a3cd28c965ec21c5328ae5605fc9c400cd330e9e9d6ac175c"
       url: "https://pub.dev"
     source: hosted
-    version: "3.1.3"
+    version: "8.2.2"
   http:
     dependency: "direct main"
     description:
       name: http
-      sha256: "411262398b34f52b9baac4860a1aa6e4779037ba9289c19b4cd16928efa97a2b"
+      sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
       url: "https://pub.dev"
     source: hosted
-    version: "0.12.2"
+    version: "0.13.6"
   http_parser:
     dependency: transitive
     description:
       name: http_parser
-      sha256: "9d2b0626e9e402fc98e6868360da8f256064d6c0b8e4c3edcca5e02fb0b95da9"
+      sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
       url: "https://pub.dev"
     source: hosted
-    version: "3.1.4"
+    version: "4.0.2"
   js:
     dependency: transitive
     description:
@@ -176,22 +176,14 @@ packages:
       url: "https://pub.dev"
     source: hosted
     version: "1.8.2"
-  path_drawing:
-    dependency: transitive
-    description:
-      name: path_drawing
-      sha256: "3bdd251dae9ffaef944450b73f168610db7e968e7b20daf0c3907f8b4aafc8a2"
-      url: "https://pub.dev"
-    source: hosted
-    version: "0.5.1+1"
   path_parsing:
     dependency: transitive
     description:
       name: path_parsing
-      sha256: ee5c47c1058ad66b4a41746ec3996af9593d0858872807bcd64ac118f0700337
+      sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf
       url: "https://pub.dev"
     source: hosted
-    version: "0.2.1"
+    version: "1.0.1"
   path_provider_linux:
     dependency: transitive
     description:
@@ -216,14 +208,6 @@ packages:
       url: "https://pub.dev"
     source: hosted
     version: "2.1.7"
-  pedantic:
-    dependency: transitive
-    description:
-      name: pedantic
-      sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602"
-      url: "https://pub.dev"
-    source: hosted
-    version: "1.11.1"
   petitparser:
     dependency: transitive
     description:
@@ -252,10 +236,10 @@ packages:
     dependency: "direct main"
     description:
       name: provider
-      sha256: af58e866ea76fa7d156ea5e6ffa1c28b52dabff5c87fbdf265f7c6adaa7a741d
+      sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f
       url: "https://pub.dev"
     source: hosted
-    version: "4.3.3"
+    version: "6.0.5"
   shared_preferences:
     dependency: "direct main"
     description:
@@ -373,6 +357,30 @@ packages:
       url: "https://pub.dev"
     source: hosted
     version: "1.3.2"
+  vector_graphics:
+    dependency: transitive
+    description:
+      name: vector_graphics
+      sha256: ea8d3fc7b2e0f35de38a7465063ecfcf03d8217f7962aa2a6717132cb5d43a79
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.1.5"
+  vector_graphics_codec:
+    dependency: transitive
+    description:
+      name: vector_graphics_codec
+      sha256: a5eaa5d19e123ad4f61c3718ca1ed921c4e6254238d9145f82aa214955d9aced
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.1.5"
+  vector_graphics_compiler:
+    dependency: transitive
+    description:
+      name: vector_graphics_compiler
+      sha256: "15edc42f7eaa478ce854eaf1fbb9062a899c0e4e56e775dd73b7f4709c97c4ca"
+      url: "https://pub.dev"
+    source: hosted
+    version: "1.1.5"
   vector_math:
     dependency: transitive
     description:
@@ -401,10 +409,10 @@ packages:
     dependency: transitive
     description:
       name: xml
-      sha256: "80d494c09849dc3f899d227a78c30c5b949b985ededf884cb3f3bcd39f4b447a"
+      sha256: "979ee37d622dec6365e2efa4d906c37470995871fe9ae080d967e192d88286b5"
       url: "https://pub.dev"
     source: hosted
-    version: "5.4.1"
+    version: "6.2.2"
 sdks:
-  dart: ">=2.18.0 <3.0.0"
-  flutter: ">=3.3.0"
+  dart: ">=2.19.0 <3.0.0"
+  flutter: ">=3.7.0-0"

+ 4 - 4
pubspec.yaml

@@ -10,11 +10,11 @@ dependencies:
     sdk: flutter
 
   cupertino_icons: ^1.0.5
-  provider: ^4.0.5+1
-  http: ^0.12.1
+  provider: ^6.0.5
+  http: ^0.13.6
   shared_preferences: ^2.2.0
-  fluttertoast: ^3.0.3
-  flutter_svg: ^0.22.0 # it help us to use SVG in our app
+  fluttertoast: ^8.2.2
+  flutter_svg: ^2.0.5 # it help us to use SVG in our app
 
 dev_dependencies:
   flutter_test: