Browse Source

fix error

git@h5.yoqi.me 2 years ago
parent
commit
f93490ad89

File diff suppressed because it is too large
+ 0 - 0
.flutter-plugins-dependencies


+ 2 - 1
lib/dao/api.dart

@@ -1,3 +1,4 @@
 class Api {
-  
+  static const String _host = "https://xx.com";
+  static const String login = _host + "/login";
 }

+ 5 - 2
lib/main.dart

@@ -1,10 +1,11 @@
 import 'dart:io';
 
 import 'package:douyin_demo/pages/recommend_page.dart';
+import 'package:douyin_demo/routes.dart';
 import 'package:flutter/material.dart';
 import 'package:shared_preferences/shared_preferences.dart';
 
-Future main() async {
+void main() async {
   WidgetsFlutterBinding.ensureInitialized();
   final prefs = await SharedPreferences.getInstance();
   prefs.setBool("ifIOS", Platform.isIOS);
@@ -44,6 +45,8 @@ class MyApp extends StatelessWidget {
       home: RecommendPage(
         selIndex: 0,
       ),
+      routes: Routes.define(),
+      // initialRoute: Routes.splash,
     );
   }
-}
+}

+ 3 - 3
lib/pages/FaceDetection.dart

@@ -10,7 +10,7 @@ class FaceDetectionView extends StatefulWidget {
 }
 
 class _FaceDetectionViewState extends State<FaceDetectionView> {
-  XFile filePath;
+  PickedFile filePath;
 
   @override
   void initState() {
@@ -18,7 +18,7 @@ class _FaceDetectionViewState extends State<FaceDetectionView> {
   }
 
   chooseImage() async {
-    filePath = await ImagePicker().pickImage(
+    filePath = await ImagePicker().getImage(
         source: ImageSource.gallery,
         imageQuality: 100,
         maxWidth: MediaQuery.of(context).size.width);
@@ -49,7 +49,7 @@ class _FaceDetectionViewState extends State<FaceDetectionView> {
   @override
   Widget build(BuildContext context) {
     return Stack(children: [
-      RaisedButton(
+      ElevatedButton(
         child: Text("选择图片"),
         onPressed: () {
           chooseImage();

+ 8 - 5
lib/pages/camera_main.dart

@@ -190,7 +190,7 @@ class _CameraMainState extends State<CameraMain> {
               left: 250 * rpx,
               child: Container(
                 width: 250 * rpx,
-                child: FlatButton(
+                child: TextButton(
                   onPressed: () {},
                   child: Row(
                     children: [
@@ -492,7 +492,7 @@ class _ScrollBottomBarState extends State<ScrollBottomBar> {
                         children: List.generate(items.length, (index) {
                       return Container(
                         width: eachWidth,
-                        child: FlatButton(
+                        child: TextButton(
                           child: Text(
                             items[index],
                             style: TextStyle(
@@ -500,7 +500,9 @@ class _ScrollBottomBarState extends State<ScrollBottomBar> {
                                     ? Colors.white
                                     : Colors.white.withOpacity(0.5)),
                           ),
-                          padding: EdgeInsets.all(0),
+                          style: ButtonStyle(
+                              padding:
+                                  MaterialStateProperty.all(EdgeInsets.zero)),
                           onPressed: () {
                             moveToItem(index);
                           },
@@ -551,8 +553,9 @@ class CircleTakePhoto extends StatelessWidget {
         border: Border.all(
             width: 10 * rpx, color: Color.fromARGB(128, 219, 48, 85)),
       ),
-      child: FlatButton(
-          padding: EdgeInsets.all(0),
+      child: TextButton(
+          style:
+              ButtonStyle(padding: MaterialStateProperty.all(EdgeInsets.zero)),
           onPressed: () async {
             // provider.changeFileName('png');
             // print(provider.fileName);

+ 13 - 11
lib/pages/home_page.dart

@@ -1,8 +1,8 @@
 import 'package:after_layout/after_layout.dart';
 import 'package:flutter/material.dart';
 
-class SelfHomePage extends StatelessWidget {
-  const SelfHomePage({Key key}) : super(key: key);
+class HomePage extends StatelessWidget {
+  const HomePage({Key key}) : super(key: key);
 
   @override
   Widget build(BuildContext context) {
@@ -27,7 +27,7 @@ class HomeMain extends StatefulWidget {
 class _HomeMainState extends State<HomeMain> with TickerProviderStateMixin {
   double extraPicHeight = 0;
   BoxFit fitType;
-  double prev_dy;
+  double prevDy;
   double rpx;
   AnimationController animationController;
   Animation<double> anim;
@@ -38,7 +38,7 @@ class _HomeMainState extends State<HomeMain> with TickerProviderStateMixin {
   void initState() {
     super.initState();
     tabController = TabController(vsync: this, length: 3);
-    prev_dy = 0;
+    prevDy = 0;
     fitType = BoxFit.fitWidth;
     animationController =
         AnimationController(vsync: this, duration: Duration(milliseconds: 300));
@@ -46,17 +46,17 @@ class _HomeMainState extends State<HomeMain> with TickerProviderStateMixin {
   }
 
   updatePicHeight(changed) {
-    if (prev_dy == 0) {
-      prev_dy = changed;
+    if (prevDy == 0) {
+      prevDy = changed;
     }
-    extraPicHeight += changed - prev_dy;
+    extraPicHeight += changed - prevDy;
     if (extraPicHeight >= 200 * widget.rpx) {
       fitType = BoxFit.fitHeight;
     } else {
       fitType = BoxFit.fitWidth;
     }
     setState(() {
-      prev_dy = changed;
+      prevDy = changed;
       extraPicHeight = extraPicHeight;
       fitType = fitType;
     });
@@ -82,7 +82,7 @@ class _HomeMainState extends State<HomeMain> with TickerProviderStateMixin {
             fitType = fitType;
           });
         });
-      prev_dy = 0;
+      prevDy = 0;
     });
   }
 
@@ -219,8 +219,10 @@ class SliverTopBar extends StatelessWidget {
                   Container(
                       height: 80 * rpx,
                       width: 330 * rpx,
-                      child: RaisedButton(
-                        color: Color(0xffdc3254),
+                      child: ElevatedButton(
+                        style: ButtonStyle(
+                          foregroundColor: MaterialStateProperty.all(Color(0xffdc3254))
+                        ),
                         child: Text(
                           "+关注",
                           style: TextStyle(

+ 13 - 0
lib/pages/splash_page.dart

@@ -1,3 +1,4 @@
+import 'package:douyin_demo/routes.dart';
 import 'package:flutter/material.dart';
 
 class SplashPage extends StatefulWidget {
@@ -14,4 +15,16 @@ class _SplashPageState extends State<SplashPage> {
       body: Text("闪屏页"),
     );
   }
+  
+  @override
+  void didChangeDependencies() {
+    super.didChangeDependencies();
+    goMain();
+  }
+
+  void goMain() {
+    Future.delayed(Duration(seconds: 1), () {
+      Routes.popAndPushNamed(context, Routes.home);
+    });
+  }
 }

+ 0 - 3
lib/route/routes.dart

@@ -1,3 +0,0 @@
-class Routes{
-
-}

+ 41 - 0
lib/routes.dart

@@ -0,0 +1,41 @@
+import 'package:douyin_demo/pages/home_page.dart';
+import 'package:douyin_demo/pages/recommend_page.dart';
+import 'package:douyin_demo/pages/splash_page.dart';
+import 'package:flutter/material.dart';
+
+class Routes {
+  static const home = 'app://';
+  static const splash = 'app://splash';
+  static const recommend = "app://recommend";
+
+  static define() => {
+        home: (context) => const HomePage(),
+        splash: (context) => const SplashPage(),
+        recommend: (context) => const RecommendPage(),
+      };
+
+  Routes.pushNamed(BuildContext context, String url, dynamic params) {
+    _getPage(context, url, params: params);
+  }
+
+  Routes.pushNamedNoParams(BuildContext context, String url) {
+    _getPage(context, url);
+  }
+
+  /// 比如splashPage跳转
+  Routes.popAndPushNamed(BuildContext context, String url) {
+    Navigator.of(context).popAndPushNamed(url);
+  }
+
+  _getPage(BuildContext context, String url, {dynamic params}) {
+    if (url.startsWith('https://') || url.startsWith('http://')) {
+      // return WebViewPage(url, params: params);
+    } else {
+      if (params == null) {
+        Navigator.pushNamed(context, url);
+      } else {
+        Navigator.pushNamed(context, url, arguments: params);
+      }
+    }
+  }
+}

+ 1 - 0
lib/views/swiper_main.dart

@@ -17,6 +17,7 @@ class SwiperMain extends StatefulWidget {
 
 class _SwiperMainState extends State<SwiperMain>
     with AutomaticKeepAliveClientMixin {
+      
   @override
   Widget build(BuildContext context) {
     RecommendProvider provider = Provider.of<RecommendProvider>(context);

+ 5 - 4
lib/widgets/bottom_bar.dart

@@ -71,7 +71,7 @@ class _BtmBarState extends State<BtmBar> {
       case 2:
         Navigator.pushAndRemoveUntil(
             context,
-            MaterialPageRoute(builder: (context) => SelfHomePage()),
+            MaterialPageRoute(builder: (context) => HomePage()),
             ModalRoute.withName("/selfHome"));
         break;
       case 3:
@@ -136,7 +136,7 @@ class _BtmBarState extends State<BtmBar> {
 }
 
 getBtmTextWidget(String content, bool ifSelected, tapFunc, double rpx) {
-  return FlatButton(
+  return TextButton(
       onPressed: () {
         tapFunc();
       },
@@ -167,8 +167,9 @@ class AddIcon extends StatelessWidget {
       padding: EdgeInsets.symmetric(horizontal: 30 * rpx),
       height: iconHeight,
       width: 150 * rpx,
-      child: FlatButton(
-          padding: EdgeInsets.all(0),
+      child: TextButton(
+          style:
+              ButtonStyle(padding: MaterialStateProperty.all(EdgeInsets.zero)),
           onPressed: () {
             tapItem();
           },

+ 188 - 104
pubspec.lock

@@ -5,105 +5,119 @@ packages:
     dependency: "direct main"
     description:
       name: after_layout
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.1.0"
+    version: "1.1.1+1"
   async:
     dependency: transitive
     description:
       name: async
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.6.1"
+    version: "2.8.2"
   boolean_selector:
     dependency: transitive
     description:
       name: boolean_selector
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.1.0"
   camera:
     dependency: "direct main"
     description:
       name: camera
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.5.8+17"
   characters:
     dependency: transitive
     description:
       name: characters
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.1.0"
+    version: "1.2.0"
   charcode:
     dependency: transitive
     description:
       name: charcode
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.2.0"
+    version: "1.3.1"
   clock:
     dependency: transitive
     description:
       name: clock
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.1.0"
   collection:
     dependency: transitive
     description:
       name: collection
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.15.0"
+  cross_file:
+    dependency: transitive
+    description:
+      name: cross_file
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.3.3+1"
   crypto:
     dependency: transitive
     description:
       name: crypto
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "3.0.1"
+    version: "3.0.2"
+  csslib:
+    dependency: transitive
+    description:
+      name: csslib
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.17.2"
   cupertino_icons:
     dependency: "direct main"
     description:
       name: cupertino_icons
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.0.4"
+    version: "1.0.5"
   fading_edge_scrollview:
     dependency: transitive
     description:
       name: fading_edge_scrollview
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.0.1"
   fake_async:
     dependency: transitive
     description:
       name: fake_async
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.2.0"
   ffi:
     dependency: transitive
     description:
       name: ffi
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.1.2"
+    version: "1.2.1"
   file:
     dependency: transitive
     description:
       name: file
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "6.1.2"
   firebase_ml_vision:
     dependency: "direct main"
     description:
       name: firebase_ml_vision
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.9.10"
   flutter:
@@ -115,21 +129,21 @@ packages:
     dependency: transitive
     description:
       name: flutter_page_indicator
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.0.3"
   flutter_plugin_android_lifecycle:
     dependency: transitive
     description:
       name: flutter_plugin_android_lifecycle
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.0.11"
+    version: "2.0.7"
   flutter_swiper:
     dependency: "direct main"
     description:
       name: flutter_swiper
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.1.6"
   flutter_test:
@@ -142,223 +156,279 @@ packages:
     description: flutter
     source: sdk
     version: "0.0.0"
+  html:
+    dependency: transitive
+    description:
+      name: html
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.15.0"
   http:
     dependency: transitive
     description:
       name: http
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.12.2"
+    version: "0.13.5"
   http_parser:
     dependency: transitive
     description:
       name: http_parser
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "3.1.4"
+    version: "4.0.1"
   image_gallery_saver:
     dependency: "direct main"
     description:
       name: image_gallery_saver
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.7.1"
   image_picker:
     dependency: "direct main"
     description:
       name: image_picker
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.6.7+22"
+    version: "0.8.5+3"
+  image_picker_android:
+    dependency: transitive
+    description:
+      name: image_picker_android
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.8.5+2"
+  image_picker_for_web:
+    dependency: transitive
+    description:
+      name: image_picker_for_web
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.8"
+  image_picker_ios:
+    dependency: transitive
+    description:
+      name: image_picker_ios
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.8.5+6"
   image_picker_platform_interface:
     dependency: transitive
     description:
       name: image_picker_platform_interface
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.1.6"
+    version: "2.6.1"
   image_picker_saver:
     dependency: "direct main"
     description:
       name: image_picker_saver
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.3.0"
   js:
     dependency: transitive
     description:
       name: js
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.6.3"
   json_annotation:
     dependency: "direct main"
     description:
       name: json_annotation
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "3.1.1"
   lpinyin:
     dependency: "direct main"
     description:
       name: lpinyin
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.0.3"
   marquee:
     dependency: "direct main"
     description:
       name: marquee
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.2.1"
   marquee_flutter:
     dependency: "direct main"
     description:
       name: marquee_flutter
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.1.4"
   matcher:
     dependency: transitive
     description:
       name: matcher
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.12.10"
+    version: "0.12.11"
+  material_color_utilities:
+    dependency: transitive
+    description:
+      name: material_color_utilities
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.1.3"
   meta:
     dependency: transitive
     description:
       name: meta
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.3.0"
+    version: "1.7.0"
   nested:
     dependency: transitive
     description:
       name: nested
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.0.0"
   path:
     dependency: "direct main"
     description:
       name: path
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.8.0"
   path_provider:
     dependency: "direct main"
     description:
       name: path_provider
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.4"
+    version: "2.0.11"
+  path_provider_android:
+    dependency: transitive
+    description:
+      name: path_provider_android
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.9"
+  path_provider_ios:
+    dependency: transitive
+    description:
+      name: path_provider_ios
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.11"
   path_provider_linux:
     dependency: transitive
     description:
       name: path_provider_linux
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.1.5"
+    version: "2.1.7"
   path_provider_macos:
     dependency: transitive
     description:
       name: path_provider_macos
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.0.3"
   path_provider_platform_interface:
     dependency: transitive
     description:
       name: path_provider_platform_interface
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.0.0"
   path_provider_windows:
     dependency: transitive
     description:
       name: path_provider_windows
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "2.0.5"
-  pedantic:
-    dependency: transitive
-    description:
-      name: pedantic
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.11.1"
+    version: "2.0.7"
   platform:
     dependency: transitive
     description:
       name: platform
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "3.1.0"
   plugin_platform_interface:
     dependency: transitive
     description:
       name: plugin_platform_interface
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "1.0.3"
+    version: "2.1.2"
   process:
     dependency: transitive
     description:
       name: process
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "4.2.3"
+    version: "4.2.4"
   provider:
     dependency: "direct main"
     description:
       name: provider
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "6.0.2"
+    version: "6.0.3"
   shared_preferences:
     dependency: "direct main"
     description:
       name: shared_preferences
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.7"
+    version: "2.0.15"
+  shared_preferences_android:
+    dependency: transitive
+    description:
+      name: shared_preferences_android
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.12"
+  shared_preferences_ios:
+    dependency: transitive
+    description:
+      name: shared_preferences_ios
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.1"
   shared_preferences_linux:
     dependency: transitive
     description:
       name: shared_preferences_linux
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.4"
+    version: "2.1.1"
   shared_preferences_macos:
     dependency: transitive
     description:
       name: shared_preferences_macos
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.2"
+    version: "2.0.4"
   shared_preferences_platform_interface:
     dependency: transitive
     description:
       name: shared_preferences_platform_interface
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.0.0"
   shared_preferences_web:
     dependency: transitive
     description:
       name: shared_preferences_web
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.3"
+    version: "2.0.4"
   shared_preferences_windows:
     dependency: transitive
     description:
       name: shared_preferences_windows
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.4"
+    version: "2.1.1"
   sky_engine:
     dependency: transitive
     description: flutter
@@ -368,121 +438,135 @@ packages:
     dependency: transitive
     description:
       name: source_span
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.8.1"
   stack_trace:
     dependency: transitive
     description:
       name: stack_trace
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.10.0"
   sticky_headers:
     dependency: "direct main"
     description:
       name: sticky_headers
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.1.8+1"
   stream_channel:
     dependency: transitive
     description:
       name: stream_channel
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.1.0"
   stretchy_header:
     dependency: "direct main"
     description:
       name: stretchy_header
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "2.0.0"
   string_scanner:
     dependency: transitive
     description:
       name: string_scanner
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.1.0"
   term_glyph:
     dependency: transitive
     description:
       name: term_glyph
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.2.0"
   test_api:
     dependency: transitive
     description:
       name: test_api
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.3.0"
+    version: "0.4.8"
   transformer_page_view:
     dependency: transitive
     description:
       name: transformer_page_view
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.1.6"
   typed_data:
     dependency: transitive
     description:
       name: typed_data
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.3.0"
   uuid:
     dependency: "direct main"
     description:
       name: uuid
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "3.0.6"
   vector_math:
     dependency: transitive
     description:
       name: vector_math
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.1.0"
+    version: "2.1.1"
   video_player:
     dependency: "direct main"
     description:
       name: video_player
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.2.3"
+    version: "2.2.19"
+  video_player_android:
+    dependency: transitive
+    description:
+      name: video_player_android
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.3.4"
+  video_player_avfoundation:
+    dependency: transitive
+    description:
+      name: video_player_avfoundation
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.3.5"
   video_player_platform_interface:
     dependency: transitive
     description:
       name: video_player_platform_interface
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "4.2.0"
   video_player_web:
     dependency: transitive
     description:
       name: video_player_web
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.7"
+    version: "2.0.12"
   win32:
     dependency: transitive
     description:
       name: win32
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.2.10"
+    version: "2.5.2"
   xdg_directories:
     dependency: transitive
     description:
       name: xdg_directories
-      url: "https://pub.dartlang.org"
+      url: "https://pub.flutter-io.cn"
     source: hosted
     version: "0.2.0+1"
 sdks:
-  dart: ">=2.13.0 <3.0.0"
-  flutter: ">=2.0.0"
+  dart: ">=2.15.0 <3.0.0"
+  flutter: ">=2.8.0"

+ 2 - 1
pubspec.yaml

@@ -25,10 +25,11 @@ dependencies:
   path_provider: ^2.0.2
   path: ^1.8.0
   uuid: ^3.0.6
+  # uses a deprecated version of the Android embedding
   image_picker_saver: ^0.3.0
   image_gallery_saver: ^1.7.1
   firebase_ml_vision: ^0.9.2+2
-  image_picker: ^0.6.7+9
+  image_picker: ^0.8.3+3
 
 dev_dependencies:
   # flutter_test:

Some files were not shown because too many files changed in this diff