diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c467f4..75d8771 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,14 @@ +## [2.2.16] - (2022-Nov-27) + +- Update documentation on Android 12. +- Fix web background image. Thanks [Severin](https://github.com/Bungeefan) for [PR #459](https://github.com/jonbhanson/flutter_native_splash/pull/459). +- Support more image formats. Thanks [Severin](https://github.com/Bungeefan) for [PR #460](https://github.com/jonbhanson/flutter_native_splash/pull/460). + ## [2.2.15] - (2022-Nov-20) - Fix iOS background image build incorrectly when background dark image is used. Fixes [#452](https://github.com/jonbhanson/flutter_native_splash/issues/452), fixes [#439](https://github.com/jonbhanson/flutter_native_splash/issues/439). -- Correct background image/color handling on web. Fixes [#450](https://github.com/jonbhanson/flutter_native_splash/issues/450). -- Don't include dark styling in web if not specified in config. Fixes [453](https://github.com/jonbhanson/flutter_native_splash/issues/453). +- Correct background image/color handling on web. Fixes [#450](https://github.com/jonbhanson/flutter_native_splash/issues/450), fixes [324](https://github.com/jonbhanson/flutter_native_splash/issues/324). +- Don't include dark styling in web if not specified in config. Fixes [#453](https://github.com/jonbhanson/flutter_native_splash/issues/453). - Add _Parameters class to hold parameters. ## [2.2.14] - (2022-Nov-07) diff --git a/README.md b/README.md index c6e7451..319cfc8 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.2.15 + flutter_native_splash: ^2.2.16 ``` Don't forget to `flutter pub get`. @@ -106,7 +106,7 @@ flutter_native_splash: #web: false # Platform specific images can be specified with the following parameters, which will override - # the respective image parameter. You may specify all, selected, or none of these parameters: + # the respective parameter. You may specify all, selected, or none of these parameters: #color_android: "#42a5f5" #color_dark_android: "#042a49" #color_ios: "#42a5f5" @@ -211,11 +211,24 @@ If you find this package useful, you can support it for free by giving it a thum

-# Android 12 Support +# Android 12+ Support Android 12 has a [new method](https://developer.android.com/about/versions/12/features/splash-screen) of adding splash screens, which consists of a window background, icon, and the icon background. Note that a background image is not supported. -The package provides Android 12 support while maintaining the legacy splash screen for previous versions of Android. + + +Be aware of the following considerations regarding these elements: + +1. `image` parameter. By default, the launcher icon is used: + + * App icon without an icon background, as shown on the left: This should be 1152×1152 pixels, and fit within a circle 768 pixels in diameter. + * App icon with an icon background, as shown on the right: This should be 960×960 pixels, and fit within a circle 640 pixels in diameter. + +2. `icon_background_color` is optional, and is useful if you need more contrast between the icon and the window background. + +3. One-third of the foreground is masked. + +4. `color` the window background consists of a single opaque color. ~~**_PLEASE NOTE:_** The splash screen may not appear when you launch the app from Android Studio. However, it should appear when you launch by clicking on the launch icon in Android.~~ This seems to be resolved now. diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d1a8386..060bfa6 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -169,7 +169,7 @@ flutter_native_splash: #web: false # Platform specific images can be specified with the following parameters, which will override - # the respective image parameter. You may specify all, selected, or none of these parameters: + # the respective parameter. You may specify all, selected, or none of these parameters: #color_android: "#42a5f5" #color_dark_android: "#042a49" #color_ios: "#42a5f5" diff --git a/pubspec.yaml b/pubspec.yaml index d6c50d0..ec377d5 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.2.15 +version: 2.2.16 repository: https://github.com/jonbhanson/flutter_native_splash issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues @@ -29,6 +29,12 @@ dev_dependencies: sdk: flutter flutter_lints: ^2.0.1 +screenshots: + - description: 'Examples of the splash screen on iOS.' + path: splash_demo.webp + - description: 'Examples of the splash screen on iOS in dark mode.' + path: splash_demo_dark.webp + flutter: # This section identifies this Flutter project as a plugin project. # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.) diff --git a/splash_demo.webp b/splash_demo.webp new file mode 100644 index 0000000..50c530d Binary files /dev/null and b/splash_demo.webp differ diff --git a/splash_demo_dark.webp b/splash_demo_dark.webp new file mode 100644 index 0000000..afb3742 Binary files /dev/null and b/splash_demo_dark.webp differ