From 677dbd47d87ee250cc3c6ab343d18a7b61acbbd3 Mon Sep 17 00:00:00 2001 From: Jon Hanson Date: Sun, 31 Dec 2023 12:25:48 -0500 Subject: [PATCH] Resolve lint warnings. Update readme. --- CHANGELOG.md | 4 ++++ README.md | 6 +++++- example/pubspec.lock | 2 +- lib/android.dart | 2 +- lib/constants.dart | 2 +- lib/flavor_helper.dart | 2 +- lib/ios.dart | 2 +- lib/templates.dart | 2 +- lib/web.dart | 2 +- pubspec.yaml | 2 +- 10 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95055f3..a9e01a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [2.3.9] + +- Resolve lint warnings. Update readme. + ## [2.3.8] - Make functions private that should not be public. diff --git a/README.md b/README.md index 854c75d..35eedfd 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file. ```yaml dependencies: - flutter_native_splash: ^2.3.8 + flutter_native_splash: ^2.3.9 ``` Don't forget to `flutter pub get`. @@ -387,6 +387,10 @@ Congrats you finished your setup for multiple flavors, # FAQs +## I got the error 'module flutter_native_splash' not found. + +You may need to run the `pod install` command in your app's `ios` folder. + ## I got the error "A splash screen was provided to Flutter, but this is deprecated." This message is not related to this package but is related to a [change](https://flutter.dev/docs/development/ui/advanced/splash-screen#migrating-from-manifest--activity-defined-custom-splash-screens) in how Flutter handles splash screens in Flutter 2.5. It is caused by having the following code in your `android/app/src/main/AndroidManifest.xml`, which was included by default in previous versions of Flutter: diff --git a/example/pubspec.lock b/example/pubspec.lock index 3dab907..4008088 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -124,7 +124,7 @@ packages: path: ".." relative: true source: path - version: "2.3.8" + version: "2.3.9" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/android.dart b/lib/android.dart index e15d884..ad47078 100644 --- a/lib/android.dart +++ b/lib/android.dart @@ -1,4 +1,4 @@ -part of flutter_native_splash_cli; +part of 'cli_commands.dart'; /// Image template class _AndroidDrawableTemplate { diff --git a/lib/constants.dart b/lib/constants.dart index 314b89e..2583740 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -1,4 +1,4 @@ -part of flutter_native_splash_cli; +part of 'cli_commands.dart'; // Web-related constants const String _webFolder = 'web/'; diff --git a/lib/flavor_helper.dart b/lib/flavor_helper.dart index ad5a78d..80652d3 100644 --- a/lib/flavor_helper.dart +++ b/lib/flavor_helper.dart @@ -1,4 +1,4 @@ -part of flutter_native_splash_cli; +part of 'cli_commands.dart'; class _FlavorHelper { _FlavorHelper(this._flavor) { diff --git a/lib/ios.dart b/lib/ios.dart index 4651d4a..2a12c0a 100644 --- a/lib/ios.dart +++ b/lib/ios.dart @@ -1,4 +1,4 @@ -part of flutter_native_splash_cli; +part of 'cli_commands.dart'; // Image template class _IosLaunchImageTemplate { diff --git a/lib/templates.dart b/lib/templates.dart index a19537d..ce45978 100644 --- a/lib/templates.dart +++ b/lib/templates.dart @@ -1,4 +1,4 @@ -part of flutter_native_splash_cli; +part of 'cli_commands.dart'; // Android-related templates diff --git a/lib/web.dart b/lib/web.dart index 85e1b8a..bce880d 100644 --- a/lib/web.dart +++ b/lib/web.dart @@ -1,4 +1,4 @@ -part of flutter_native_splash_cli; +part of 'cli_commands.dart'; // Image template class _WebLaunchImageTemplate { diff --git a/pubspec.yaml b/pubspec.yaml index e845deb..bfe4b5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_native_splash description: Customize Flutter's default white native splash screen with background color and splash image. Supports dark mode, full screen, and more. -version: 2.3.8 +version: 2.3.9 repository: https://github.com/jonbhanson/flutter_native_splash issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues