Skip to content

Commit 4014482

Browse files
committed
Use average for image interpolation to reduce aliasing. Thanks Shawn) for the tip. Fixes #598.
1 parent 461a588 commit 4014482

6 files changed

Lines changed: 15 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1+
## [2.3.4] - (2023-Oct-16)
2+
3+
- 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).
4+
15
## [2.3.3] - (2023-Oct-02)
6+
27
- Updated dependencies.
8+
39
## [2.3.2] - (2023-Aug-13)
10+
411
- Update the example.
512
- Update the `environment` value in the `pubspec.yaml`.
13+
614
## [2.3.1] - (2023-Jun-04)
15+
716
- 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).
817
- New command for generating all flavors at once: --flavors
918
- 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).
1019
- Fix fullscreen switch not working for Android <12v in System.dark mode. Fixes [#559](https://github.com/jonbhanson/flutter_native_splash/issues/559).
1120

1221
## [2.3.0] - (2023-May-15)
22+
1323
- 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).
1424
- 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).
1525
- 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).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file.
2121

2222
```yaml
2323
dependencies:
24-
flutter_native_splash: ^2.3.3
24+
flutter_native_splash: ^2.3.4
2525
```
2626
2727
Don't forget to `flutter pub get`.

lib/android.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void _saveImageAndroid({
267267
image,
268268
width: image.width * template.pixelDensity ~/ 4,
269269
height: image.height * template.pixelDensity ~/ 4,
270-
interpolation: Interpolation.cubic,
270+
interpolation: Interpolation.average,
271271
);
272272

273273
// When the flavor value is not specified we will place all the data inside the main directory.

lib/ios.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void _applyImageiOS({
193193
image,
194194
width: image.width * template.pixelDensity ~/ 4,
195195
height: image.height * template.pixelDensity ~/ 4,
196-
interpolation: Interpolation.cubic,
196+
interpolation: Interpolation.average,
197197
);
198198

199199
final file = File(targetPath! + template.fileName);

lib/web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void _saveImageWeb({
243243
image,
244244
width: image.width * template.pixelDensity ~/ 4,
245245
height: image.height * template.pixelDensity ~/ 4,
246-
interpolation: Interpolation.cubic,
246+
interpolation: Interpolation.average,
247247
);
248248

249249
final file = File(_webSplashImagesFolder + template.fileName);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_native_splash
22
description: Customize Flutter's default white native splash screen with
33
background color and splash image. Supports dark mode, full screen, and more.
4-
version: 2.3.3
4+
version: 2.3.4
55
repository: https://github.com/jonbhanson/flutter_native_splash
66
issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues
77

0 commit comments

Comments
 (0)