Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keypath crash #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flare_dart/lib/animation/keyframe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,8 @@ class KeyFrameStrokeStart extends KeyFrameNumeric {
if (component == null) return;

ActorStroke star = component as ActorStroke;
if(star.trimStart == null) return;

star.trimStart = star.trimStart * (1.0 - mix) + value * mix;
}
}
Expand Down
10 changes: 6 additions & 4 deletions flare_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ environment:
dependencies:
flutter:
sdk: flutter
flare_dart: ^1.2.0
# flare_dart:
# path: ../flare_dart
flare_dart:
git:
url: https://github.com/iuraiura879/Flare-Flutter.git
path: flare_dart
ref: fix-keypath-crash
dev_dependencies:
flutter_test:
sdk: flutter
sdk: flutter