Skip to content

Commit

Permalink
Fixing issue #37.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-rosso committed Feb 1, 2019
1 parent 446f5c7 commit d2f9792
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions flare_dart/lib/actor_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ abstract class ActorStroke {
StrokeCap get cap => _cap;
StrokeJoin get join => _join;

TrimPath _trim;
TrimPath _trim = TrimPath.Off;

TrimPath get trim => _trim;
bool get isTrimmed => _trim != TrimPath.Off;
Expand Down Expand Up @@ -180,7 +180,7 @@ abstract class ActorStroke {
component._cap = strokeCapLookup[reader.readUint8("cap")];
component._join = strokeJoinLookup[reader.readUint8("join")];
if (artboard.actor.version >= 20) {
component._trim = trimPathLookup[reader.readUint8("trim")];
component._trim = trimPathLookup[reader.readUint8("trim")] ?? TrimPath.Off;
if (component.isTrimmed) {
component._trimStart = reader.readFloat32("start");
component._trimEnd = reader.readFloat32("end");
Expand Down
2 changes: 1 addition & 1 deletion flare_dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flare_dart
description: Vector design and runtime animation.
version: 1.2.0
version: 1.2.1
author: "2Dimensions Team <[email protected]>"
homepage: https://github.com/2d-inc/Flare-Flutter
environment:
Expand Down
8 changes: 4 additions & 4 deletions flare_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: flare_flutter
description: Vector design and runtime animation for Flutter.
version: 1.2.0
version: 1.2.1
author: "2Dimensions Team <[email protected]>"
homepage: https://github.com/2d-inc/Flare-Flutter
environment:
sdk: ">=2.0.0-dev.58.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flare_dart: ^1.2.0
# flare_dart:
# path: ../flare_dart
flare_dart: ^1.2.1
# flare_dart:
# path: ../flare_dart
dev_dependencies:
flutter_test:
sdk: flutter

0 comments on commit d2f9792

Please sign in to comment.