Browse Source

fix errror

lyq.me@qq.com 3 years ago
parent
commit
2001a6dfda

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


+ 0 - 1
lib/detector_painters.dart

@@ -1,6 +1,5 @@
 import 'dart:ui' as ui;
 import 'dart:ui' as ui;
 import 'package:firebase_ml_vision/firebase_ml_vision.dart';
 import 'package:firebase_ml_vision/firebase_ml_vision.dart';
-import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
 
 
 enum Detector { barcode, face, label, cloudLabel, text }
 enum Detector { barcode, face, label, cloudLabel, text }

+ 0 - 1
lib/main.dart

@@ -2,7 +2,6 @@ import 'dart:io';
 
 
 import 'package:douyin_demo/pages/recommend_page.dart';
 import 'package:douyin_demo/pages/recommend_page.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
-import 'package:marquee_flutter/marquee_flutter.dart';
 import 'package:shared_preferences/shared_preferences.dart';
 import 'package:shared_preferences/shared_preferences.dart';
 
 
 Future main() async {
 Future main() async {

+ 1 - 1
lib/model/posts_model.g.dart

@@ -1,6 +1,6 @@
 // GENERATED CODE - DO NOT MODIFY BY HAND
 // GENERATED CODE - DO NOT MODIFY BY HAND
 
 
-part of 'PostsModel.dart';
+part of 'posts_model.dart';
 
 
 // **************************************************************************
 // **************************************************************************
 // JsonSerializableGenerator
 // JsonSerializableGenerator

+ 2 - 6
lib/pages/CameraMain.dart

@@ -2,14 +2,11 @@ import 'dart:io';
 import 'dart:math';
 import 'dart:math';
 
 
 import 'package:camera/camera.dart';
 import 'package:camera/camera.dart';
-import 'package:camera/new/src/support_android/camera.dart';
 import 'package:douyin_demo/providers/CameraProvider.dart';
 import 'package:douyin_demo/providers/CameraProvider.dart';
 import 'package:firebase_ml_vision/firebase_ml_vision.dart';
 import 'package:firebase_ml_vision/firebase_ml_vision.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
 import 'package:image_gallery_saver/image_gallery_saver.dart';
 import 'package:image_gallery_saver/image_gallery_saver.dart';
 import 'package:provider/provider.dart';
 import 'package:provider/provider.dart';
-import 'package:path/path.dart' as p;
-import 'package:image_picker_saver/image_picker_saver.dart';
 
 
 class CameraPage extends StatelessWidget {
 class CameraPage extends StatelessWidget {
   const CameraPage({Key key}) : super(key: key);
   const CameraPage({Key key}) : super(key: key);
@@ -128,7 +125,6 @@ class _CameraMainState extends State<CameraMain> {
 
 
   @override
   @override
   void dispose() {
   void dispose() {
-    // TODO: implement dispose
     _controller.dispose();
     _controller.dispose();
     super.dispose();
     super.dispose();
   }
   }
@@ -473,7 +469,6 @@ class _AnimVideoButtonState extends State<AnimVideoButton>
 
 
   @override
   @override
   void dispose() {
   void dispose() {
-    // TODO: implement dispose
     controller.dispose();
     controller.dispose();
     super.dispose();
     super.dispose();
   }
   }
@@ -725,7 +720,8 @@ class CircleTakePhoto extends StatelessWidget {
             //       fileData: File(provider.fileName).readAsBytesSync());
             //       fileData: File(provider.fileName).readAsBytesSync());
             // });
             // });
             provider.changeFileName('mp4');
             provider.changeFileName('mp4');
-            provider.cameraController.startVideoRecording(provider.fileName);
+            // provider.cameraController.startVideoRecording(provider.fileName);
+            provider.cameraController.startVideoRecording();
             provider.changePhotoWidget();
             provider.changePhotoWidget();
           },
           },
           child: Container(
           child: Container(

+ 5 - 6
lib/pages/FaceDetection.dart

@@ -1,4 +1,3 @@
-import 'dart:io';
 import 'package:firebase_ml_vision/firebase_ml_vision.dart';
 import 'package:firebase_ml_vision/firebase_ml_vision.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
 import 'package:image_picker/image_picker.dart';
 import 'package:image_picker/image_picker.dart';
@@ -11,7 +10,7 @@ class FaceDetectionView extends StatefulWidget {
 }
 }
 
 
 class _FaceDetectionViewState extends State<FaceDetectionView> {
 class _FaceDetectionViewState extends State<FaceDetectionView> {
-  File filePath;
+  XFile filePath;
 
 
   @override
   @override
   void initState() {
   void initState() {
@@ -19,7 +18,7 @@ class _FaceDetectionViewState extends State<FaceDetectionView> {
   }
   }
 
 
   chooseImage() async {
   chooseImage() async {
-    filePath = await ImagePicker.pickImage(
+    filePath = await ImagePicker().pickImage(
         source: ImageSource.gallery,
         source: ImageSource.gallery,
         imageQuality: 100,
         imageQuality: 100,
         maxWidth: MediaQuery.of(context).size.width);
         maxWidth: MediaQuery.of(context).size.width);
@@ -36,7 +35,7 @@ class _FaceDetectionViewState extends State<FaceDetectionView> {
     //         .toList(),
     //         .toList(),
     //     rotation: ImageRotation.rotation90);
     //     rotation: ImageRotation.rotation90);
     final FirebaseVisionImage visionImage =
     final FirebaseVisionImage visionImage =
-        FirebaseVisionImage.fromFile(filePath);
+        FirebaseVisionImage.fromFilePath(filePath.path);
     final FaceDetector detector = FirebaseVision.instance.faceDetector();
     final FaceDetector detector = FirebaseVision.instance.faceDetector();
     final List<Face> faces = await detector.processImage(visionImage);
     final List<Face> faces = await detector.processImage(visionImage);
 
 
@@ -59,8 +58,8 @@ class _FaceDetectionViewState extends State<FaceDetectionView> {
       filePath == null
       filePath == null
           ? Container()
           ? Container()
           : Container(
           : Container(
-              child: Image.file(
-                filePath,
+              child: Image.asset(
+                filePath.path,
                 fit: BoxFit.fitWidth,
                 fit: BoxFit.fitWidth,
               ),
               ),
             )
             )

+ 5 - 1
lib/pages/RecommendPage/BottomSheet.dart

@@ -258,7 +258,11 @@ showAtFriendPage(BuildContext context) {
   Navigator.of(context).push(MaterialPageRoute(
   Navigator.of(context).push(MaterialPageRoute(
       builder: (BuildContext context) {
       builder: (BuildContext context) {
         return MultiProvider(providers: [
         return MultiProvider(providers: [
-          ChangeNotifierProvider(builder: (context) => AtUserProvider())
+          ChangeNotifierProvider(
+            create: (BuildContext context) {
+              return AtUserProvider();
+            },
+          )
         ], child: AtFriendPage());
         ], child: AtFriendPage());
       },
       },
       fullscreenDialog: true));
       fullscreenDialog: true));

+ 1 - 0
lib/pages/SameCityPage.dart

@@ -1,5 +1,6 @@
 import 'package:douyin_demo/model/posts_model.dart';
 import 'package:douyin_demo/model/posts_model.dart';
 import 'package:douyin_demo/providers/PostsGalleryProvider.dart';
 import 'package:douyin_demo/providers/PostsGalleryProvider.dart';
+import 'package:douyin_demo/widgets/bottom_bar.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
 import 'package:provider/provider.dart';
 import 'package:provider/provider.dart';
 
 

+ 2 - 2
lib/pages/home_page.dart

@@ -205,7 +205,7 @@ class SliverTopBar extends StatelessWidget {
           mainAxisSize: MainAxisSize.min,
           mainAxisSize: MainAxisSize.min,
           children: <Widget>[
           children: <Widget>[
             Image.asset(
             Image.asset(
-              "lib/images/temple.jpg",
+              "assets/images/temple.jpg",
               width: 750 * rpx,
               width: 750 * rpx,
               height: 300 * rpx + extraPicHeight,
               height: 300 * rpx + extraPicHeight,
               fit: fitType,
               fit: fitType,
@@ -452,7 +452,7 @@ class NumWithDesc extends StatelessWidget {
 //             expandedHeight: 250,
 //             expandedHeight: 250,
 //             flexibleSpace: FlexibleSpaceBar(
 //             flexibleSpace: FlexibleSpaceBar(
 //               title: Text("This is Sliver App Bar"),
 //               title: Text("This is Sliver App Bar"),
-//               background: Image.asset("lib/images/temple.jpg",height: 250,fit: BoxFit.fitWidth,),
+//               background: Image.asset("assets/images/temple.jpg",height: 250,fit: BoxFit.fitWidth,),
 //             ),
 //             ),
 //           ),
 //           ),
 //           SliverList(delegate: SliverChildBuilderDelegate((context,index){
 //           SliverList(delegate: SliverChildBuilderDelegate((context,index){

+ 2 - 2
lib/pages/loadData.dart

@@ -22,7 +22,7 @@ class RefreshPage extends StatefulWidget {
 }
 }
 
 
 class _RefreshPageState extends State<RefreshPage> {
 class _RefreshPageState extends State<RefreshPage> {
-  List<String> data = List<String>();
+  List<String> data = <String>[];
   ScrollController controller;
   ScrollController controller;
   bool ifLoading = false;
   bool ifLoading = false;
 
 
@@ -39,7 +39,7 @@ class _RefreshPageState extends State<RefreshPage> {
       RefreshIndicator(
       RefreshIndicator(
         onRefresh: () {
         onRefresh: () {
           return Future.delayed(Duration(seconds: 1), () {
           return Future.delayed(Duration(seconds: 1), () {
-            data = List<String>();
+            data = <String>[];
             List.generate(30, (i) => data.add("item ${i + 1}"));
             List.generate(30, (i) => data.add("item ${i + 1}"));
             setState(() {
             setState(() {
               data = data;
               data = data;

+ 3 - 1
lib/pages/recommend_page.dart

@@ -16,7 +16,9 @@ class RecommendPage extends StatelessWidget {
     return MultiProvider(
     return MultiProvider(
         providers: [
         providers: [
           ChangeNotifierProvider(
           ChangeNotifierProvider(
-            builder: (context) => RecommendProvider(),
+                create: (BuildContext context) {
+              return RecommendProvider();
+            },
           )
           )
         ],
         ],
         child: Scaffold(
         child: Scaffold(

+ 0 - 1
lib/providers/CameraProvider.dart

@@ -100,7 +100,6 @@ class CameraProvider extends State<StatefulWidget>
 
 
   @override
   @override
   Widget build(BuildContext context) {
   Widget build(BuildContext context) {
-    // TODO: implement build
     return null;
     return null;
   }
   }
 }
 }

+ 1 - 1
lib/providers/PostsGalleryProvider.dart

@@ -41,7 +41,7 @@ class PostsGalleryProvider with ChangeNotifier {
   }
   }
 
 
   setGalleryModel(String items) {
   setGalleryModel(String items) {
-    var result = List<PostsModel>();
+    var result = <PostsModel>[];
 
 
     var posts = json.decode(items)["result"];
     var posts = json.decode(items)["result"];
     // result.add(posts);
     // result.add(posts);

+ 8 - 9
lib/providers/RecommendProvider.dart

@@ -23,13 +23,13 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 212,
         replyCount: 212,
         shareCount: 317,
         shareCount: 317,
         userName: "马有发",
         userName: "马有发",
-        videoPath: "lib/images/pingguo.jpeg",
+        videoPath: "assets/images/pingguo.jpeg",
         desc: "马友发做的一个有意思的模拟抖音的小App,用的Flutter哦~",
         desc: "马友发做的一个有意思的模拟抖音的小App,用的Flutter哦~",
         ifFaved: false);
         ifFaved: false);
 
 
     reply = Reply(
     reply = Reply(
         ifFaved: true,
         ifFaved: true,
-        afterReplies: List<Reply>(),
+        afterReplies: <Reply>[],
         replyContent: "真可爱,真好看,真厉害~真可爱,真好看,真厉害~",
         replyContent: "真可爱,真好看,真厉害~真可爱,真好看,真厉害~",
         replyMakerAvatar:
         replyMakerAvatar:
             "https://pic2.zhimg.com/v2-a88cd7618933272ca681f86398e6240d_xll.jpg",
             "https://pic2.zhimg.com/v2-a88cd7618933272ca681f86398e6240d_xll.jpg",
@@ -44,7 +44,7 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 329,
         replyCount: 329,
         shareCount: 1222,
         shareCount: 1222,
         userName: "范德彪",
         userName: "范德彪",
-        videoPath: "lib/images/sky.jpg",
+        videoPath: "assets/images/sky.jpg",
         desc: "这个天空的图有点好看",
         desc: "这个天空的图有点好看",
         ifFaved: true));
         ifFaved: true));
     infos.add(MainInfo(
     infos.add(MainInfo(
@@ -55,7 +55,7 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 189,
         replyCount: 189,
         shareCount: 262,
         shareCount: 262,
         userName: "马大帅",
         userName: "马大帅",
-        videoPath: "lib/images/temple.jpg",
+        videoPath: "assets/images/temple.jpg",
         desc: "我喜欢拜佛",
         desc: "我喜欢拜佛",
         ifFaved: true));
         ifFaved: true));
 
 
@@ -67,7 +67,7 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 222,
         replyCount: 222,
         shareCount: 1983,
         shareCount: 1983,
         userName: "ABC",
         userName: "ABC",
-        videoPath: "lib/images/woman.jpg",
+        videoPath: "assets/images/woman.jpg",
         desc: "黑色女人有黑色的美",
         desc: "黑色女人有黑色的美",
         ifFaved: true));
         ifFaved: true));
 
 
@@ -79,7 +79,7 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 329,
         replyCount: 329,
         shareCount: 1222,
         shareCount: 1222,
         userName: "范德彪",
         userName: "范德彪",
-        videoPath: "lib/images/whitehouse.jpg",
+        videoPath: "assets/images/whitehouse.jpg",
         desc: "这个天空的图有点好看",
         desc: "这个天空的图有点好看",
         ifFaved: true));
         ifFaved: true));
     followed.add(MainInfo(
     followed.add(MainInfo(
@@ -90,7 +90,7 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 189,
         replyCount: 189,
         shareCount: 262,
         shareCount: 262,
         userName: "马大帅",
         userName: "马大帅",
-        videoPath: "lib/images/waterdrop.jpg",
+        videoPath: "assets/images/waterdrop.jpg",
         desc: "我喜欢拜佛",
         desc: "我喜欢拜佛",
         ifFaved: true));
         ifFaved: true));
 
 
@@ -102,7 +102,7 @@ class RecommendProvider extends State<StatefulWidget>
         replyCount: 222,
         replyCount: 222,
         shareCount: 1983,
         shareCount: 1983,
         userName: "ABC",
         userName: "ABC",
-        videoPath: "lib/images/woman2.jpg",
+        videoPath: "assets/images/woman2.jpg",
         desc: "黑色女人有黑色的美",
         desc: "黑色女人有黑色的美",
         ifFaved: true));
         ifFaved: true));
   }
   }
@@ -134,7 +134,6 @@ class RecommendProvider extends State<StatefulWidget>
 
 
   @override
   @override
   Widget build(BuildContext context) {
   Widget build(BuildContext context) {
-    // TODO: implement build
     return null;
     return null;
   }
   }
 }
 }

+ 2 - 2
lib/views/button_list.dart

@@ -34,7 +34,7 @@ class _ButtonListState extends State<ButtonList> {
         end: 1.0,
         end: 1.0,
         duration: Duration(milliseconds: 100)));
         duration: Duration(milliseconds: 100)));
 
 
-    List<IconAnimationStage> stages2 = List<IconAnimationStage>();
+    List<IconAnimationStage> stages2 = <IconAnimationStage>[];
     stages2.add(IconAnimationStage(
     stages2.add(IconAnimationStage(
         color: Colors.grey[100],
         color: Colors.grey[100],
         start: 1.0,
         start: 1.0,
@@ -46,7 +46,7 @@ class _ButtonListState extends State<ButtonList> {
         end: 1.0,
         end: 1.0,
         duration: Duration(milliseconds: 200)));
         duration: Duration(milliseconds: 200)));
 
 
-    List<IconAnimationStage> stages3 = List<IconAnimationStage>();
+    List<IconAnimationStage> stages3 = <IconAnimationStage>[];
     stages3.add(IconAnimationStage(
     stages3.add(IconAnimationStage(
         color: Colors.redAccent,
         color: Colors.redAccent,
         start: 1.0,
         start: 1.0,

+ 1 - 0
lib/views/main_tab_view.dart

@@ -1,6 +1,7 @@
 import 'package:douyin_demo/providers/RecommendProvider.dart';
 import 'package:douyin_demo/providers/RecommendProvider.dart';
 import 'package:douyin_demo/views/swiper_main.dart';
 import 'package:douyin_demo/views/swiper_main.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
+import 'package:flutter_swiper/flutter_swiper.dart';
 import 'package:provider/provider.dart';
 import 'package:provider/provider.dart';
 
 
 import 'center_image.dart';
 import 'center_image.dart';

+ 0 - 1
lib/views/rotate_album.dart

@@ -35,7 +35,6 @@ class _RotateAlbumState extends State<RotateAlbum>
 
 
   @override
   @override
   void dispose() {
   void dispose() {
-    // TODO: implement dispose
     _controller.dispose();
     _controller.dispose();
     super.dispose();
     super.dispose();
   }
   }

+ 0 - 1
lib/views/video_back.dart

@@ -16,7 +16,6 @@ class _VideoBackState extends State<VideoBack> {
 
 
   @override
   @override
   void initState() {
   void initState() {
-    // TODO: implement initState
     super.initState();
     super.initState();
     _controller = VideoPlayerController.network(this.url)
     _controller = VideoPlayerController.network(this.url)
     // 播放状态
     // 播放状态

+ 4 - 4
lib/widgets/FavAnimation.dart

@@ -308,13 +308,13 @@ class AnimatedIconWidget extends StatefulWidget {
 
 
 class _AnimatedIconWidgetState extends State<AnimatedIconWidget>
 class _AnimatedIconWidgetState extends State<AnimatedIconWidget>
     with TickerProviderStateMixin {
     with TickerProviderStateMixin {
-  List<IconAnimationStage> anis = List<IconAnimationStage>();
-  List<AnimationController> controllers = List<AnimationController>();
-  List<Animation<double>> animations = List<Animation<double>>();
+  List<IconAnimationStage> anis = <IconAnimationStage>[];
+  List<AnimationController> controllers = <AnimationController>[];
+  List<Animation<double>> animations = <Animation<double>>[];
   Animation<double> curAnim;
   Animation<double> curAnim;
   Color curColor;
   Color curColor;
   int curIndex = 0;
   int curIndex = 0;
-  List<bool> ifAdded = List<bool>();
+  List<bool> ifAdded = <bool>[];
   double curSize;
   double curSize;
   bool ifInit = true;
   bool ifInit = true;
 
 

+ 6 - 5
lib/widgets/bottom_bar.dart

@@ -80,8 +80,9 @@ class _BtmBarState extends State<BtmBar> {
                 builder: (context) => MultiProvider(
                 builder: (context) => MultiProvider(
                         providers: [
                         providers: [
                           ChangeNotifierProvider(
                           ChangeNotifierProvider(
-                            builder: (context) => PostsGalleryProvider(),
-                          )
+                              create: (BuildContext context) {
+                            return PostsGalleryProvider();
+                          })
                         ],
                         ],
                         child: SameCityMain(
                         child: SameCityMain(
                           selIndex: index,
                           selIndex: index,
@@ -99,9 +100,9 @@ class _BtmBarState extends State<BtmBar> {
             builder: (BuildContext context) {
             builder: (BuildContext context) {
               return MultiProvider(
               return MultiProvider(
                   providers: [
                   providers: [
-                    ChangeNotifierProvider(
-                      builder: (_) => CameraProvider(),
-                    )
+                    ChangeNotifierProvider(create: (BuildContext context) {
+                      return CameraProvider();
+                    })
                   ],
                   ],
                   child: CameraPage(
                   child: CameraPage(
                       // rpx: MediaQuery.of(context).size.width / 750,
                       // rpx: MediaQuery.of(context).size.width / 750,

+ 209 - 83
pubspec.lock

@@ -1,90 +1,139 @@
 # Generated by pub
 # Generated by pub
 # See https://dart.dev/tools/pub/glossary#lockfile
 # See https://dart.dev/tools/pub/glossary#lockfile
 packages:
 packages:
+  after_layout:
+    dependency: "direct main"
+    description:
+      name: after_layout
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "1.1.0"
   async:
   async:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: async
       name: async
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.8.1"
+    version: "2.8.2"
   boolean_selector:
   boolean_selector:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: boolean_selector
       name: boolean_selector
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.0"
     version: "2.1.0"
+  camera:
+    dependency: "direct main"
+    description:
+      name: camera
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.9.4+18"
+  camera_platform_interface:
+    dependency: transitive
+    description:
+      name: camera_platform_interface
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.1.5"
+  camera_web:
+    dependency: transitive
+    description:
+      name: camera_web
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.2.1+3"
   characters:
   characters:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: characters
       name: characters
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.1.0"
+    version: "1.2.0"
   charcode:
   charcode:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: charcode
       name: charcode
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.3.1"
     version: "1.3.1"
   clock:
   clock:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: clock
       name: clock
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.1.0"
     version: "1.1.0"
   collection:
   collection:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: collection
       name: collection
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.15.0"
+    version: "1.16.0"
   cross_file:
   cross_file:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: cross_file
       name: cross_file
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.3.2"
     version: "0.3.2"
+  crypto:
+    dependency: transitive
+    description:
+      name: crypto
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "3.0.1"
   csslib:
   csslib:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: csslib
       name: csslib
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.17.1"
     version: "0.17.1"
   cupertino_icons:
   cupertino_icons:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: cupertino_icons
       name: cupertino_icons
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.0.4"
     version: "1.0.4"
+  fading_edge_scrollview:
+    dependency: transitive
+    description:
+      name: fading_edge_scrollview
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.0.1"
   fake_async:
   fake_async:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: fake_async
       name: fake_async
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.2.0"
+    version: "1.3.0"
   ffi:
   ffi:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: ffi
       name: ffi
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.1.2"
     version: "1.1.2"
   file:
   file:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: file
       name: file
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "6.1.2"
     version: "6.1.2"
+  firebase_ml_vision:
+    dependency: "direct main"
+    description:
+      name: firebase_ml_vision
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.12.0+3"
   flutter:
   flutter:
     dependency: "direct main"
     dependency: "direct main"
     description: flutter
     description: flutter
@@ -94,21 +143,21 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: flutter_page_indicator
       name: flutter_page_indicator
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.0.3"
     version: "0.0.3"
   flutter_plugin_android_lifecycle:
   flutter_plugin_android_lifecycle:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: flutter_plugin_android_lifecycle
       name: flutter_plugin_android_lifecycle
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.5"
     version: "2.0.5"
   flutter_swiper:
   flutter_swiper:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: flutter_swiper
       name: flutter_swiper
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.1.6"
     version: "1.1.6"
   flutter_test:
   flutter_test:
@@ -125,231 +174,266 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: html
       name: html
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.15.0"
     version: "0.15.0"
   http:
   http:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: http
       name: http
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.13.4"
     version: "0.13.4"
   http_parser:
   http_parser:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: http_parser
       name: http_parser
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "4.0.0"
     version: "4.0.0"
   image_gallery_saver:
   image_gallery_saver:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: image_gallery_saver
       name: image_gallery_saver
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.7.1"
     version: "1.7.1"
   image_picker:
   image_picker:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: image_picker
       name: image_picker
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.8.4+10"
+    version: "0.8.4+11"
   image_picker_for_web:
   image_picker_for_web:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: image_picker_for_web
       name: image_picker_for_web
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.6"
     version: "2.1.6"
   image_picker_platform_interface:
   image_picker_platform_interface:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: image_picker_platform_interface
       name: image_picker_platform_interface
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.4.4"
     version: "2.4.4"
+  image_picker_saver:
+    dependency: "direct main"
+    description:
+      name: image_picker_saver
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.3.0"
   js:
   js:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: js
       name: js
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.6.3"
+    version: "0.6.4"
   json_annotation:
   json_annotation:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: json_annotation
       name: json_annotation
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "4.4.0"
     version: "4.4.0"
   lpinyin:
   lpinyin:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: lpinyin
       name: lpinyin
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.3"
     version: "2.0.3"
+  marquee:
+    dependency: "direct main"
+    description:
+      name: marquee
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.2.1"
+  marquee_flutter:
+    dependency: "direct main"
+    description:
+      name: marquee_flutter
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.1.4"
   matcher:
   matcher:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: matcher
       name: matcher
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.12.10"
+    version: "0.12.11"
+  material_color_utilities:
+    dependency: transitive
+    description:
+      name: material_color_utilities
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.1.4"
   meta:
   meta:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: meta
       name: meta
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.7.0"
     version: "1.7.0"
   nested:
   nested:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: nested
       name: nested
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.0.0"
     version: "1.0.0"
   path:
   path:
-    dependency: transitive
+    dependency: "direct main"
     description:
     description:
       name: path
       name: path
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.8.0"
+    version: "1.8.1"
   path_provider:
   path_provider:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: path_provider
       name: path_provider
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.9"
     version: "2.0.9"
   path_provider_android:
   path_provider_android:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path_provider_android
       name: path_provider_android
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.0.11"
+    version: "2.0.12"
   path_provider_ios:
   path_provider_ios:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path_provider_ios
       name: path_provider_ios
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.0.7"
+    version: "2.0.8"
   path_provider_linux:
   path_provider_linux:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path_provider_linux
       name: path_provider_linux
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.5"
     version: "2.1.5"
   path_provider_macos:
   path_provider_macos:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path_provider_macos
       name: path_provider_macos
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.5"
     version: "2.0.5"
   path_provider_platform_interface:
   path_provider_platform_interface:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path_provider_platform_interface
       name: path_provider_platform_interface
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.3"
     version: "2.0.3"
   path_provider_windows:
   path_provider_windows:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path_provider_windows
       name: path_provider_windows
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.5"
     version: "2.0.5"
   platform:
   platform:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: platform
       name: platform
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "3.1.0"
     version: "3.1.0"
   plugin_platform_interface:
   plugin_platform_interface:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: plugin_platform_interface
       name: plugin_platform_interface
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.2"
     version: "2.1.2"
   process:
   process:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: process
       name: process
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "4.2.4"
     version: "4.2.4"
   provider:
   provider:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: provider
       name: provider
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "6.0.2"
     version: "6.0.2"
+  quiver:
+    dependency: transitive
+    description:
+      name: quiver
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "3.0.1+1"
   shared_preferences:
   shared_preferences:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: shared_preferences
       name: shared_preferences
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.13"
     version: "2.0.13"
   shared_preferences_android:
   shared_preferences_android:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_android
       name: shared_preferences_android
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.0.10"
+    version: "2.0.11"
   shared_preferences_ios:
   shared_preferences_ios:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_ios
       name: shared_preferences_ios
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.0.9"
+    version: "2.1.0"
   shared_preferences_linux:
   shared_preferences_linux:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_linux
       name: shared_preferences_linux
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.0"
     version: "2.1.0"
   shared_preferences_macos:
   shared_preferences_macos:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_macos
       name: shared_preferences_macos
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.3"
     version: "2.0.3"
   shared_preferences_platform_interface:
   shared_preferences_platform_interface:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_platform_interface
       name: shared_preferences_platform_interface
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.0"
     version: "2.0.0"
   shared_preferences_web:
   shared_preferences_web:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_web
       name: shared_preferences_web
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.3"
     version: "2.0.3"
   shared_preferences_windows:
   shared_preferences_windows:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: shared_preferences_windows
       name: shared_preferences_windows
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.0"
     version: "2.1.0"
   sky_engine:
   sky_engine:
@@ -361,100 +445,142 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: source_span
       name: source_span
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.8.1"
+    version: "1.8.2"
   stack_trace:
   stack_trace:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: stack_trace
       name: stack_trace
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.10.0"
     version: "1.10.0"
+  sticky_headers:
+    dependency: "direct main"
+    description:
+      name: sticky_headers
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.2.0"
   stream_channel:
   stream_channel:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: stream_channel
       name: stream_channel
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.1.0"
     version: "2.1.0"
+  stream_transform:
+    dependency: transitive
+    description:
+      name: stream_transform
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.0.0"
+  stretchy_header:
+    dependency: "direct main"
+    description:
+      name: stretchy_header
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.0.0"
   string_scanner:
   string_scanner:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: string_scanner
       name: string_scanner
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.1.0"
     version: "1.1.0"
   term_glyph:
   term_glyph:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: term_glyph
       name: term_glyph
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.2.0"
     version: "1.2.0"
   test_api:
   test_api:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: test_api
       name: test_api
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.4.2"
+    version: "0.4.9"
   transformer_page_view:
   transformer_page_view:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: transformer_page_view
       name: transformer_page_view
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.1.6"
     version: "0.1.6"
   typed_data:
   typed_data:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: typed_data
       name: typed_data
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "1.3.0"
     version: "1.3.0"
+  uuid:
+    dependency: "direct main"
+    description:
+      name: uuid
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "3.0.6"
   vector_math:
   vector_math:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: vector_math
       name: vector_math
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.1.0"
+    version: "2.1.2"
   video_player:
   video_player:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: video_player
       name: video_player
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.3.0"
+  video_player_android:
+    dependency: transitive
+    description:
+      name: video_player_android
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.3.2"
+  video_player_avfoundation:
+    dependency: transitive
+    description:
+      name: video_player_avfoundation
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.2.17"
+    version: "2.3.1"
   video_player_platform_interface:
   video_player_platform_interface:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: video_player_platform_interface
       name: video_player_platform_interface
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "5.1.0"
+    version: "5.1.1"
   video_player_web:
   video_player_web:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: video_player_web
       name: video_player_web
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "2.0.7"
     version: "2.0.7"
   win32:
   win32:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: win32
       name: win32
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.3.6"
+    version: "2.5.1"
   xdg_directories:
   xdg_directories:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: xdg_directories
       name: xdg_directories
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
     version: "0.2.0+1"
     version: "0.2.0+1"
 sdks:
 sdks:
-  dart: ">=2.14.0 <3.0.0"
-  flutter: ">=2.5.0"
+  dart: ">=2.16.0-100.0.dev <3.0.0"
+  flutter: ">=2.8.0"

+ 10 - 10
pubspec.yaml

@@ -10,24 +10,24 @@ dependencies:
     sdk: flutter
     sdk: flutter
 
 
   cupertino_icons: ^1.0.3
   cupertino_icons: ^1.0.3
-#  marquee:
+  marquee:
   video_player: ^2.2.17
   video_player: ^2.2.17
-#  marquee_flutter:
+  marquee_flutter:
   provider: ^6.0.1
   provider: ^6.0.1
   lpinyin: ^2.0.3
   lpinyin: ^2.0.3
-#  sticky_headers:
+  sticky_headers:
   shared_preferences: ^2.0.7
   shared_preferences: ^2.0.7
   json_annotation: ^4.4.0
   json_annotation: ^4.4.0
   flutter_swiper: ^1.1.6
   flutter_swiper: ^1.1.6
-#  stretchy_header:
-#  after_layout:
-#  camera:
+  stretchy_header:
+  after_layout:
+  camera:
   path_provider: ^2.0.9
   path_provider: ^2.0.9
-#  path:
-#  uuid:
-#  image_picker_saver:
+  path:
+  uuid:
+  image_picker_saver:
   image_gallery_saver: ^1.7.1
   image_gallery_saver: ^1.7.1
-#  firebase_ml_vision:
+  firebase_ml_vision:
   image_picker: ^0.8.4+4
   image_picker: ^0.8.4+4
 
 
 dev_dependencies:
 dev_dependencies:

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