FLUTTER ECOSYSTEM

quentinleguennec/flutter-arrow-path

Path ऑब्जेक्ट्स के साथ तीर आसानी से बनाने के लिए एक Flutter पैकेज। मार्गों को संयोजित किया जा सकता है ताकि किसी भी वक्र पर तीर जोड़े जा सकें और सभी को एक साथ ड्रॉ किया जा सके।

flutter-arrow-path प्रोजेक्ट कवर
Stars
25
Forks
10
अंतिम पुश (UTC)
3 जून 2023
प्रोजेक्ट स्थिति
सक्रिय
Quentin Le Guennec GitHub avatar
GITHUB User

Quentin Le Guennec ↗

Vancouver ByteLabsVancouver
भाषाएँDartObjective-CJava

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_lintsडेवलपमेंट^2.0.1

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

pub package pub points

Flutter arrow_path package

Draw arrows with Path objects easily. Paths can be composited to add arrows to any curve and draw all at once.

https://raw.githubusercontent.com/quentinleguennec/flutter-arrow-path/master/example/arrow_path_example.png

The arrow is drawn using the direction of the tangent to the curve at the end of the curve. It features an adjustment parameter to also look at the tangent just before the end of the segment and rotate the tip of the arrow based on the angle difference to improve the look of the arrow when the curvature at the end is high.

Getting Started

Have a look at the example app to get started.

Migration from [3.0.0] to [3.1.0]

ArrowPath.make() is now deprecated, use ArrowPath.addTip() instead.

If you are not using the isDoubleSided argument of ArrowPath.make() then you can safely replace it by ArrowPath.addTip() without any other change.

If you are using the isDoubleSided argument of ArrowPath.make() then change yor 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);