Skip to content

Commit

Permalink
Support for GIFs in splash screen for web. Using inline css & js in i…
Browse files Browse the repository at this point in the history
…ndex.html to decrease load time. Misc fixes.
  • Loading branch information
jonbhanson committed May 15, 2023
1 parent 47c18d7 commit 4f999f9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [2.3.0] - (2023-May-15)
- Support for GIFs in splash screen for web. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #547](https://github.com/jonbhanson/flutter_native_splash/pull/547).
- Using inline css & js in index.html to decrease load time. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #548](https://github.com/jonbhanson/flutter_native_splash/pull/548).
- Update example app for Flutter 3.10. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #551](https://github.com/jonbhanson/flutter_native_splash/pull/551).
- Replaced deprecated code with suggested ones. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #550](https://github.com/jonbhanson/flutter_native_splash/pull/550).
- Update ci.yaml with latest flutter CLI commands. Thanks [OutdatedGuy](https://github.com/OutdatedGuy) for [PR #552](https://github.com/jonbhanson/flutter_native_splash/pull/552).
- Fix compatibility with AGP 8.0. Thanks [Aljoscha](https://github.com/Almighty-Alpaca) for [PR #545](https://github.com/jonbhanson/flutter_native_splash/pull/545).
- Migrate to systemUIMode. Thanks [Milind](https://github.com/milindgoel15) for [PR #534](https://github.com/jonbhanson/flutter_native_splash/pull/534).

## [2.2.19] - (2023-Mar-05)

- Refresh the example with the latest version of Flutter.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ When your app is opened, there is a brief time while the native app loads Flutte

# What's New

**\[BETA\]** Support for flavors is in beta. Currently only Android and iOS are supported. See instructions below.
Support for GIF images in web.

You can now keep the splash screen up while your app initializes! No need for a secondary splash screen anymore. Just use the `preserve` and `remove` methods together to remove the splash screen after your initialization is complete. See [details below](https://pub.dev/packages/flutter_native_splash#3-set-up-app-initialization-optional).

Expand All @@ -19,7 +19,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file.

```yaml
dependencies:
flutter_native_splash: ^2.2.19
flutter_native_splash: ^2.3.0
```
Don't forget to `flutter pub get`.
Expand Down Expand Up @@ -117,8 +117,8 @@ flutter_native_splash:
#image_dark_android: assets/splash-invert-android.png
#image_ios: assets/splash-ios.png
#image_dark_ios: assets/splash-invert-ios.png
#image_web: assets/splash-web.png
#image_dark_web: assets/splash-invert-web.png
#image_web: assets/splash-web.gif
#image_dark_web: assets/splash-invert-web.gif
#background_image_android: "assets/background-android.png"
#background_image_dark_android: "assets/dark-background-android.png"
#background_image_ios: "assets/background-ios.png"
Expand All @@ -127,8 +127,8 @@ flutter_native_splash:
#background_image_dark_web: "assets/dark-background-web.png"
#branding_android: assets/brand-android.png
#branding_dark_android: assets/dart_dark-android.png
#branding_ios: assets/brand-ios.png
#branding_dark_ios: assets/dart_dark-ios.png
#branding_ios: assets/brand-ios.gif
#branding_dark_ios: assets/dart_dark-ios.gif
# The position of the splash image can be set with android_gravity, ios_content_mode, and
# web_image_mode parameters. All default to center.
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

COCOAPODS: 1.12.0
COCOAPODS: 1.12.1
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.2.19"
version: "2.3.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
16 changes: 8 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.19
version: 2.3.0
repository: https://github.com/jonbhanson/flutter_native_splash
issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues

Expand All @@ -10,19 +10,19 @@ environment:
flutter: ">=2.5.0"

dependencies:
args: ^2.4.0
args: ^2.4.1
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
js: ^0.6.5
html: ^0.15.2
js: ^0.6.7
html: ^0.15.3
image: ^4.0.17
meta: ^1.8.0
path: ^1.8.2
meta: ^1.9.1
path: ^1.8.3
universal_io: ^2.2.0
xml: ^6.2.2
yaml: ^3.1.1
xml: ^6.3.0
yaml: ^3.1.2

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 4f999f9

Please sign in to comment.