diff --git a/lib/utils/weather/weather_util.dart b/lib/utils/weather/weather_util.dart index 68a88bc4..31f9cf4a 100644 --- a/lib/utils/weather/weather_util.dart +++ b/lib/utils/weather/weather_util.dart @@ -1,3 +1,4 @@ +import 'package:amap_location_fluttify/amap_location_fluttify.dart'; import 'package:amap_map_fluttify/amap_map_fluttify.dart'; import 'package:dio/dio.dart'; diff --git a/lib/widget/gallery_photo_view_wrapper.dart b/lib/widget/gallery_photo_view_wrapper.dart index cd8299c1..a0e72b9e 100644 --- a/lib/widget/gallery_photo_view_wrapper.dart +++ b/lib/widget/gallery_photo_view_wrapper.dart @@ -104,7 +104,7 @@ class _GalleryPhotoViewWrapperState extends State { //动态申请权限,ios 要在info.plist 上面添加 Future requestPermission() async { var status = await Permission.photos.status; - if (status.isUndetermined) { + if (status.isDenied) { await [Permission.photos].request(); } return status.isGranted; diff --git a/pubspec.lock b/pubspec.lock index 814a77f4..640477bd 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -140,14 +140,14 @@ packages: name: chewie url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.2" + version: "1.0.0" chewie_audio: dependency: transitive description: name: chewie_audio url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.2" + version: "1.2.0" cli_util: dependency: transitive description: @@ -217,21 +217,21 @@ packages: name: css_colors url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.2" + version: "1.1.0" csslib: dependency: transitive description: name: csslib url: "https://pub.flutter-io.cn" source: hosted - version: "0.16.2" + version: "0.17.0" cupertino_icons: dependency: "direct main" description: name: cupertino_icons url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "1.0.2" dart_style: dependency: transitive description: @@ -273,7 +273,7 @@ packages: name: extended_list_library url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.1" + version: "3.0.0" extended_text: dependency: "direct main" description: @@ -316,13 +316,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "0.9.2" - fluro: - dependency: "direct main" - description: - name: fluro - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.7.8" flustars: dependency: "direct main" description: @@ -383,7 +376,7 @@ packages: name: flutter_html url: "https://pub.flutter-io.cn" source: hosted - version: "1.3.0" + version: "2.0.0-nullsafety.0" flutter_icons: dependency: "direct main" description: @@ -397,7 +390,7 @@ packages: name: flutter_layout_grid url: "https://pub.flutter-io.cn" source: hosted - version: "0.10.5" + version: "1.0.0-nullsafety.6" flutter_localizations: dependency: "direct main" description: flutter @@ -416,7 +409,7 @@ packages: name: flutter_picker url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.5" + version: "2.0.0" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -430,35 +423,28 @@ packages: name: flutter_rating_bar url: "https://pub.flutter-io.cn" source: hosted - version: "3.2.0+1" - flutter_redux: - dependency: "direct main" - description: - name: flutter_redux - url: "https://pub.flutter-io.cn" - source: hosted - version: "0.5.4" + version: "4.0.0" flutter_screenutil: dependency: "direct main" description: name: flutter_screenutil url: "https://pub.flutter-io.cn" source: hosted - version: "4.0.3+3" + version: "5.0.0-nullsafety.11" flutter_slidable: dependency: "direct main" description: name: flutter_slidable url: "https://pub.flutter-io.cn" source: hosted - version: "0.5.7" + version: "0.6.0-nullsafety.0" flutter_svg: dependency: transitive description: name: flutter_svg url: "https://pub.flutter-io.cn" source: hosted - version: "0.20.0-nullsafety.3" + version: "0.21.0-nullsafety.0" flutter_swiper: dependency: "direct main" description: @@ -482,14 +468,14 @@ packages: name: fluwx url: "https://pub.flutter-io.cn" source: hosted - version: "2.5.0+1" + version: "3.3.0" font_awesome_flutter: dependency: "direct main" description: name: font_awesome_flutter url: "https://pub.flutter-io.cn" source: hosted - version: "8.11.0" + version: "9.0.0" foundation_fluttify: dependency: transitive description: @@ -503,7 +489,7 @@ packages: name: get url: "https://pub.flutter-io.cn" source: hosted - version: "3.26.0" + version: "4.0.0-nullsafety.2" glob: dependency: transitive description: @@ -545,7 +531,7 @@ packages: name: html url: "https://pub.flutter-io.cn" source: hosted - version: "0.14.0+4" + version: "0.15.0" http: dependency: transitive description: @@ -594,14 +580,7 @@ packages: name: image_stack url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" - import_js_library: - dependency: transitive - description: - name: import_js_library - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.0.2" + version: "2.0.1" import_sorter: dependency: "direct dev" description: @@ -659,7 +638,7 @@ packages: name: logger url: "https://pub.flutter-io.cn" source: hosted - version: "0.9.4" + version: "1.0.0" logging: dependency: transitive description: @@ -687,7 +666,7 @@ packages: name: nested url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.4" + version: "1.0.0" node_interop: dependency: transitive description: @@ -792,14 +771,14 @@ packages: name: permission_handler url: "https://pub.flutter-io.cn" source: hosted - version: "5.0.1+1" + version: "5.1.0+2" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.1" + version: "2.0.2" petitparser: dependency: transitive description: @@ -813,7 +792,7 @@ packages: name: photo_view url: "https://pub.flutter-io.cn" source: hosted - version: "0.10.3" + version: "0.11.1" platform: dependency: transitive description: @@ -848,7 +827,7 @@ packages: name: provider url: "https://pub.flutter-io.cn" source: hosted - version: "4.3.3" + version: "5.0.0" pub_semver: dependency: transitive description: @@ -869,21 +848,21 @@ packages: name: qr url: "https://pub.flutter-io.cn" source: hosted - version: "1.3.0" + version: "2.0.0" qr_flutter: dependency: "direct main" description: name: qr_flutter url: "https://pub.flutter-io.cn" source: hosted - version: "3.2.0" + version: "4.0.0" quiver: dependency: transitive description: name: quiver url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.5" + version: "3.0.0" random_character: dependency: "direct main" description: @@ -900,13 +879,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.0.0" - redux: - dependency: transitive - description: - name: redux - url: "https://pub.flutter-io.cn" - source: hosted - version: "3.0.0" rxdart: dependency: transitive description: @@ -962,7 +934,7 @@ packages: name: shimmer url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.2" + version: "2.0.0-nullsafety.0" sky_engine: dependency: transitive description: flutter @@ -1100,7 +1072,7 @@ packages: name: url_launcher_web url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.5+1" + version: "0.1.5+3" uuid: dependency: transitive description: @@ -1135,21 +1107,21 @@ packages: name: video_player url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.1" + version: "2.0.2" video_player_platform_interface: dependency: transitive description: name: video_player_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "2.2.0" + version: "4.0.0" video_player_web: dependency: transitive description: name: video_player_web url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.4+1" + version: "2.0.0" vxstate: dependency: transitive description: @@ -1163,21 +1135,28 @@ packages: name: wakelock url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.1+1" + version: "0.4.0" + wakelock_macos: + dependency: transitive + description: + name: wakelock_macos + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.1.0" wakelock_platform_interface: dependency: transitive description: name: wakelock_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.0+1" + version: "0.2.0" wakelock_web: dependency: transitive description: name: wakelock_web url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.0+3" + version: "0.2.0" watcher: dependency: transitive description: @@ -1191,14 +1170,14 @@ packages: name: waterfall_flow url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.2" + version: "3.0.1" webview_flutter: dependency: transitive description: name: webview_flutter url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.7" + version: "2.0.2" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 45ae466d..2d700a4b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,19 +14,17 @@ dependencies: sdk: flutter # 瀑布流 - waterfall_flow: 2.0.2 + waterfall_flow: ^3.0.1 # 权限组件 permission_handler: ^5.0.1+1 # 版本信息 package_info: ^2.0.0 #上拉加载 pull_to_refresh: ^1.6.4 - # 状态管理 - flutter_redux: ^0.5.3 - provider: ^4.1.3 + provider: ^5.0.0 # 屏幕适配 - flutter_screenutil: ^4.0.3+3 - cupertino_icons: ^1.0.0 + flutter_screenutil: ^5.0.0-nullsafety.11 + cupertino_icons: ^1.0.2 # 打电话等各种功能 url_launcher: 5.5.2 # UI库 @@ -38,49 +36,47 @@ dependencies: extended_text: ^5.0.4 #轮播图 flutter_swiper: ^1.1.6 - #路由 - fluro: ^1.6.3 #滑动卡片 - font_awesome_flutter: ^8.8.1 + font_awesome_flutter: ^9.0.0 #图片预览 - photo_view: ^0.10.2 + photo_view: ^0.11.1 #图片缓存 cached_network_image: ^3.0.0-nullsafety #头像层叠 - image_stack: ^1.1.0 + image_stack: ^2.0.1 #弹窗 bot_toast: ^4.0.1 #加载html - flutter_html: ^1.0.2 + flutter_html: ^2.0.0-nullsafety.0 #上拉滑动 sliding_up_panel: ^1.0.2 #经纬度 latlong: ^0.6.1 #滑块 - flutter_slidable: ^0.5.7 + flutter_slidable: ^0.6.0-nullsafety.0 #http dio: ^4.0.0-prev3 #骨架 - shimmer: ^1.1.2 + shimmer: ^2.0.0-nullsafety.0 #时间选择 flutter_datetime_picker: ^1.4.0 #随机二维码 - qr_flutter: ^3.2.0 + qr_flutter: ^4.0.0 #选择器 - flutter_picker: ^1.1.5 + flutter_picker: ^2.0.0 #高德地图 - amap_map_fluttify: + amap_map_fluttify: 0.29.0 amap_location_fluttify: 0.18.0 #用户存储路径 path_provider: ^2.0.1 - fluwx: ^2.5.0+1 - get: ^3.26.0 + fluwx: ^3.3.0 + get: ^4.0.0-nullsafety.2 velocity_x: ^2.6.0 hive: ^2.0.0 hive_flutter: ^1.0.0 - logger: ^0.9.4 + logger: ^1.0.0 flutter_easyrefresh: ^2.1.8 random_character: git: @@ -88,7 +84,7 @@ dependencies: image_picker: ^0.7.3 power_logger: ^1.0.0-nullsafety.0 - flutter_rating_bar: ^3.2.0+1 + flutter_rating_bar: ^4.0.0 jpush_flutter: git: url: http://159.75.73.143:8080/third_packages/jpush_flutter