Skip to content

Upgrade arrow_path to version 3.1.0#34

Merged
lempiy merged 1 commit intolempiy:masterfrom
fabionuno:arrow_path_v310
Mar 28, 2025
Merged

Upgrade arrow_path to version 3.1.0#34
lempiy merged 1 commit intolempiy:masterfrom
fabionuno:arrow_path_v310

Conversation

@fabionuno
Copy link
Contributor

I hope this PR finds you well and safe.

Migration to 3.1.0

ArrowPath.make() is now deprecated, we need to use ArrowPath.addTip() instead.
If we are not using the isDoubleSided argument of ArrowPath.make() then we can safely replace it by ArrowPath.addTip() without any other change.

But we are using the isDoubleSided argument of ArrowPath.make() then we need to change the code like this:

Before:

  Path path = Path();
  path.relativeLineTo(100, 100);
  path = ArrowPath.make(path, isDoubleSided: true);

After:

  Path path = Path();
  path.relativeLineTo(100, 100);
  path = ArrowPath.addTip(path);
  path = ArrowPath.addTip(path, isBackward: true);

Thank you for reviewing this contribution when you have the opportunity.

ArrowPath.make() is now deprecated, use ArrowPath.addTip() instead.
@lempiy
Copy link
Owner

lempiy commented Mar 28, 2025

Hi, ty. LGTM.

@lempiy lempiy merged commit 8b5174c into lempiy:master Mar 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants