Skip to content

Commit

Permalink
Fixing anti-aliasing issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-rosso committed Jul 29, 2021
1 parent 42acef1 commit 3c31464
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions flare_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.0.2] - 2021-07-29 14:39:32

- Fixing an anti-aliasing bug introduced when migrating to null safety.

## [3.0.1] - 2021-06-03 15:01:30

- Maintenance release supporting upcoming changes to Flutter.
Expand Down
4 changes: 3 additions & 1 deletion flare_flutter/lib/flare.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class FlutterActorArtboard extends ActorArtboard {
}

abstract class FlutterActorDrawable {
bool _antialias = false;
bool _antialias = true;
ui.BlendMode _blendMode = ui.BlendMode.srcOver;

bool get antialias => _antialias;
Expand All @@ -225,13 +225,15 @@ abstract class FlutterActorDrawable {
_blendMode = mode;
onBlendModeChanged(_blendMode);
}

int get blendModeId {
return _blendMode.index;
}

set blendModeId(int index) {
blendMode = ui.BlendMode.values[index];
}

List<List<ClipShape>> get clipShapes;

void clip(ui.Canvas canvas) {
Expand Down
2 changes: 1 addition & 1 deletion flare_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flare_flutter
description: Vector design and runtime animation for Flutter.
version: 3.0.1
version: 3.0.2
homepage: https://github.com/2d-inc/Flare-Flutter

dependencies:
Expand Down

0 comments on commit 3c31464

Please sign in to comment.