Skip to content

Commit

Permalink
Use average for image interpolation to reduce aliasing. Thanks Shawn)…
Browse files Browse the repository at this point in the history
… for the tip. Fixes #598.
  • Loading branch information
jonbhanson committed Oct 16, 2023
1 parent 461a588 commit 4014482
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
## [2.3.4] - (2023-Oct-16)

- Use `average` for image interpolation to reduce aliasing. Thanks [Shawn](https://github.com/esDotDev) for the tip. Fixes [#598](https://github.com/jonbhanson/flutter_native_splash/issues/598).

## [2.3.3] - (2023-Oct-02)

- Updated dependencies.

## [2.3.2] - (2023-Aug-13)

- Update the example.
- Update the `environment` value in the `pubspec.yaml`.

## [2.3.1] - (2023-Jun-04)

- Package speed up using Isolates to generate files at the same time. Thanks [Vladimir](https://github.com/vlazdra) for [PR #558](https://github.com/jonbhanson/flutter_native_splash/pull/558).
- New command for generating all flavors at once: --flavors
- Replaced deprecated 'flutter pub run' with 'dart run'. Thanks [Aditya](https://github.com/adityar224) for [PR #554](https://github.com/jonbhanson/flutter_native_splash/pull/554).
- Fix fullscreen switch not working for Android <12v in System.dark mode. Fixes [#559](https://github.com/jonbhanson/flutter_native_splash/issues/559).

## [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).
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.3.3
flutter_native_splash: ^2.3.4
```
Don't forget to `flutter pub get`.
Expand Down
2 changes: 1 addition & 1 deletion lib/android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void _saveImageAndroid({
image,
width: image.width * template.pixelDensity ~/ 4,
height: image.height * template.pixelDensity ~/ 4,
interpolation: Interpolation.cubic,
interpolation: Interpolation.average,
);

// When the flavor value is not specified we will place all the data inside the main directory.
Expand Down
2 changes: 1 addition & 1 deletion lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void _applyImageiOS({
image,
width: image.width * template.pixelDensity ~/ 4,
height: image.height * template.pixelDensity ~/ 4,
interpolation: Interpolation.cubic,
interpolation: Interpolation.average,
);

final file = File(targetPath! + template.fileName);
Expand Down
2 changes: 1 addition & 1 deletion lib/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void _saveImageWeb({
image,
width: image.width * template.pixelDensity ~/ 4,
height: image.height * template.pixelDensity ~/ 4,
interpolation: Interpolation.cubic,
interpolation: Interpolation.average,
);

final file = File(_webSplashImagesFolder + template.fileName);
Expand Down
2 changes: 1 addition & 1 deletion 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.3.3
version: 2.3.4
repository: https://github.com/jonbhanson/flutter_native_splash
issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues

Expand Down

0 comments on commit 4014482

Please sign in to comment.