[flutter] Fixes #2479, use default FilterQuality.none

This commit is contained in:
Mario Zechner 2024-03-19 16:03:30 +01:00
parent 3167747d73
commit bd781912da
4 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,6 @@
# 4.1.14
* Temporary "fix" for https://github.com/EsotericSoftware/spine-runtimes/issues/2479. It appears the canvaskit backend of Flutter has a bug. We currently do not set a `FilterQuality` anymore. The Flutter rendering backend is supposed to pick a good one depending the platform. Users can still set `FilterQuality` globally via `Atlas.filterQuality` as before.
# 4.1.13 # 4.1.13
* Fix multiply blend mode, see https://esotericsoftware.com/forum/d/25369-spine-flutter-slot%E6%B7%B7%E5%90%88%E6%A8%A1%E5%BC%8F%E5%90%8Ealpha%E4%B8%A2%E5%A4%B1/2 * Fix multiply blend mode, see https://esotericsoftware.com/forum/d/25369-spine-flutter-slot%E6%B7%B7%E5%90%88%E6%A8%A1%E5%BC%8F%E5%90%8Ealpha%E4%B8%A2%E5%A4%B1/2

View File

@ -53,10 +53,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flame name: flame
sha256: b6bb76224fc29fd5eea25d66cda6e322e3678bdedc1f65956c6151326a6a798b sha256: "2a2352741500ce47823dcf212f06b23e9bdb622454eab90244ee6da58e23b488"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.10.1" version: "1.15.0"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -169,7 +169,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "4.1.7" version: "4.1.13"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:

View File

@ -101,7 +101,7 @@ class Vec2 {
/// Use the static methods [fromAsset], [fromFile], and [fromHttp] to load an atlas. Call [dispose] /// Use the static methods [fromAsset], [fromFile], and [fromHttp] to load an atlas. Call [dispose]
/// when the atlas is no longer in use to release its resources. /// when the atlas is no longer in use to release its resources.
class Atlas { class Atlas {
static FilterQuality filterQuality = FilterQuality.medium; static FilterQuality filterQuality = FilterQuality.none;
final spine_atlas _atlas; final spine_atlas _atlas;
final List<Image> atlasPages; final List<Image> atlasPages;
final List<Map<BlendMode, Paint>> atlasPagePaints; final List<Map<BlendMode, Paint>> atlasPagePaints;
@ -183,11 +183,7 @@ class Atlas {
for (final image in atlasPages) { for (final image in atlasPages) {
image.dispose(); image.dispose();
} }
for (final map in atlasPagePaints) { atlasPagePaints.clear();
map.values.forEach((element) {
element.shader?.dispose();
});
}
} }
} }

View File

@ -1,6 +1,6 @@
name: spine_flutter name: spine_flutter
description: The official Spine Flutter Runtime to load, display and interact with Spine animations. description: The official Spine Flutter Runtime to load, display and interact with Spine animations.
version: 4.1.13 version: 4.1.14
homepage: https://esotericsoftware.com homepage: https://esotericsoftware.com
repository: https://github.com/esotericsoftware/spine-runtimes repository: https://github.com/esotericsoftware/spine-runtimes
issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues