Skip to content

Commit

Permalink
Updated documentation. Closes #327. remove correctly handles multiple…
Browse files Browse the repository at this point in the history
… plist files. Fixes #247.
  • Loading branch information
jonbhanson committed Apr 3, 2022
1 parent f6109fa commit 29029e3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## [2.1.3] - (2022-Apr-03)
* Updated documentation. Closes [#327](https://github.com/jonbhanson/flutter_native_splash/issues/327).
* `remove` correctly handles multiple plist files. Fixes [#247](https://github.com/jonbhanson/flutter_native_splash/issues/247).
## [2.1.2+1] - (2022-Mar-27)
* Add branding support in Android 12. Thanks [Vladimir](https://github.com/vlazdra) for the [PR](https://github.com/jonbhanson/flutter_native_splash/pull/316). Updated readme. Closes [#317](https://github.com/jonbhanson/flutter_native_splash/issues/317). Closes [#318](https://github.com/jonbhanson/flutter_native_splash/issues/318). Don't create a blank branding imageset. Fixes [#264](https://github.com/jonbhanson/flutter_native_splash/issues/264).
* Add branding support in Android 12. Thanks [Vladimir](https://github.com/vlazdra) for the [PR](https://github.com/jonbhanson/flutter_native_splash/pull/316).
* Updated readme. Closes [#317](https://github.com/jonbhanson/flutter_native_splash/issues/317). Closes [#318](https://github.com/jonbhanson/flutter_native_splash/issues/318).
* Don't create a blank branding imageset. Fixes [#264](https://github.com/jonbhanson/flutter_native_splash/issues/264).
## [2.1.1] - (2022-Mar-13)
* Fix for pixelated splash image on web. Fixes [#263](https://github.com/jonbhanson/flutter_native_splash/issues/263).
## [2.1.0] - (2022-Mar-06)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file.

```yaml
dependencies:
flutter_native_splash: ^2.1.2+1
flutter_native_splash: ^2.1.3
```
Don't forget to `flutter pub get`.
Expand Down Expand Up @@ -207,6 +207,9 @@ This is caused by an [iOS splash caching bug](https://stackoverflow.com/question
1. It may be caused by an [iOS splash caching bug](https://stackoverflow.com/questions/33002829/ios-keeping-old-launch-screen-and-app-icon-after-update), which can be solved by uninstalling your app, powering off your device, power back on, and then try reinstalling.
2. It may be caused by the delay due to initialization in your app. To solve this, put any initialization code in the `removeAfter` method.

## Can I base light/dark mode on app settings?
No. This package creates a splash screen that is displayed before Flutter is loaded. Because of this, when the splash screen loads, internal app settings are not available to the splash screen. Unfortunately, this means that it is impossible to control light/dark settings of the splash from app settings.

# Notes
* If the splash screen was not updated correctly on iOS or if you experience a white screen before the splash screen, run `flutter clean` and recompile your app. If that does not solve the problem, delete your app, power down the device, power up the device, install and launch the app as per [this StackOverflow thread](https://stackoverflow.com/questions/33002829/ios-keeping-old-launch-screen-and-app-icon-after-update).

Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.1.1"
version: "2.1.3"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -113,7 +113,7 @@ packages:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.1"
version: "3.1.3"
js:
dependency: transitive
description:
Expand Down
3 changes: 3 additions & 0 deletions lib/cli_commands.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ void removeSplash({String? path}) {
if (config.containsKey('web')) {
removeConfig['web'] = config['web'];
}
if (config.containsKey('info_plist_files')) {
removeConfig['info_plist_files'] = config['info_plist_files'];
}
createSplashByConfig(removeConfig);
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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.1.2+1
version: 2.1.3
homepage: https://github.com/jonbhanson/flutter_native_splash

environment:
Expand All @@ -9,7 +9,7 @@ environment:

dependencies:
args: ^2.3.0
image: ^3.1.1
image: ^3.1.3
js: ^0.6.3
meta: ^1.7.0
path: ^1.8.0
Expand Down

0 comments on commit 29029e3

Please sign in to comment.