From 51fe0a5d41267a200ec4fb1b2ec3b2455a83a253 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 10 Sep 2024 10:27:08 -0400 Subject: [PATCH] Replace deprecated flutter package_info dep https://pub.dev/documentation/package_info/latest/ lists package_info_plus as its replacement --- lib/screens/AboutScreen.dart | 2 +- pubspec.lock | 16 ++++++++++++---- pubspec.yaml | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/screens/AboutScreen.dart b/lib/screens/AboutScreen.dart index 43c5d59..b2c44b4 100644 --- a/lib/screens/AboutScreen.dart +++ b/lib/screens/AboutScreen.dart @@ -6,7 +6,7 @@ import 'package:mobile_nebula/components/config/ConfigPageItem.dart'; import 'package:mobile_nebula/components/config/ConfigSection.dart'; import 'package:mobile_nebula/gen.versions.dart'; import 'package:mobile_nebula/services/utils.dart'; -import 'package:package_info/package_info.dart'; +import 'package:package_info_plus/package_info_plus.dart'; class AboutScreen extends StatefulWidget { const AboutScreen({Key? key}) : super(key: key); diff --git a/pubspec.lock b/pubspec.lock index ae29924..94da445 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -240,14 +240,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.6" - package_info: + package_info_plus: dependency: "direct main" description: - name: package_info - sha256: "6c07d9d82c69e16afeeeeb6866fe43985a20b3b50df243091bfc4a4ad2b03b75" + name: package_info_plus + sha256: a75164ade98cb7d24cfd0a13c6408927c6b217fa60dee5a7ff5c116a58f28918 url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "8.0.2" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: ac1f4a4847f1ade8e6a87d1f39f5d7c67490738642e2542f559ec38c37489a66 + url: "https://pub.dev" + source: hosted + version: "3.0.1" path: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 8a53e00..b3edfbd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: path_provider: ^2.0.11 file_picker: ^8.1.2 uuid: ^4.4.2 - package_info: ^2.0.0 + package_info_plus: ^8.0.2 url_launcher: ^6.1.6 pull_to_refresh: ^2.0.0 flutter_barcode_scanner: ^2.0.0