Skip to content
Merged
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
15 changes: 10 additions & 5 deletions lib/graphite_edges_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,16 @@ Path _defaultEdgePathBuilder(
if (style.arrowType == EdgeArrowType.none) {
return styledPath;
}
return ArrowPath.make(
path: styledPath,
isDoubleSided: style.arrowType == EdgeArrowType.both,
tipLength: style.tipLength,
tipAngle: style.tipAngle);

var arrowPath = ArrowPath.addTip(styledPath,
tipLength: style.tipLength, tipAngle: style.tipAngle);

if (style.arrowType == EdgeArrowType.both) {
arrowPath = ArrowPath.addTip(arrowPath,
tipLength: style.tipLength, tipAngle: style.tipAngle, isBackward: true);
}

return arrowPath;
}

List<Offset> _smoothCorners(List<Offset> points, double radius) {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ packages:
dependency: "direct main"
description:
name: arrow_path
sha256: "07194a2f165242543e81b7fb16d86d433b52ee31adb0dc9afe9273c0a45e2d9e"
sha256: "794651f27eca2e9b4749d307b1e7fb8254fb8343124cc24ee6497f3ceff94651"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "3.1.0"
async:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
flutter:
sdk: flutter
touchable: ^1.0.2
arrow_path: ^2.0.0
arrow_path: ^3.1.0

dev_dependencies:
flutter_test:
Expand Down