Skip to content

Commit

Permalink
Fix for pixelated splash image on web. Fixes #263.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbhanson committed Mar 13, 2022
1 parent 70493c3 commit c3cdede
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## [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)
* Expanded options for Android 12. Thanks [Jose](https://github.com/JCQuintas) for the [PR](https://github.com/jonbhanson/flutter_native_splash/pull/300) that served as a good starting point.
## [2.0.5] - (2022-Feb-20)
Expand Down
2 changes: 1 addition & 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.0
flutter_native_splash: ^2.1.1
```

Don't forget to `flutter pub get`.
Expand Down
2 changes: 1 addition & 1 deletion 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.0.5"
version: "2.1.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion lib/templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ body {

const List<String> _indexHtmlPicture = [
' <picture id="splash">',
' <source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x" media="(prefers-color-scheme: light) or (prefers-color-scheme: no-preference)">',
' <source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x" media="(prefers-color-scheme: light)">',
' <source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x" media="(prefers-color-scheme: dark)">',
' <img class="[IMAGEMODE]" aria-hidden="true" src="splash/img/light-1x.png" />',
' </picture>',
Expand Down
2 changes: 1 addition & 1 deletion 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.0
version: 2.1.1
homepage: https://github.com/jonbhanson/flutter_native_splash

environment:
Expand Down

0 comments on commit c3cdede

Please sign in to comment.