Skip to content

Commit

Permalink
Shape detection (#632)
Browse files Browse the repository at this point in the history
* pub

* Revert "pub"

This reverts commit 32588e6.

* shapeDetection

* Shape detection

* Shape detection

* Shape detection

* shape Detection

* shapeDetection

* shapeDetection

* shapeDetection

* shape Detection

* shape detection

* shapeDetection

* shape detection
  • Loading branch information
MrGumpIT committed Mar 21, 2024
1 parent e5049f2 commit 1e596fb
Show file tree
Hide file tree
Showing 10 changed files with 479 additions and 46 deletions.
3 changes: 3 additions & 0 deletions api/lib/src/models/property.dart
Expand Up @@ -50,6 +50,9 @@ sealed class PathShape with _$PathShape {
@Default(0) double bottomLeftCornerRadius,
@Default(0) double bottomRightCornerRadius}) = RectangleShape;
const factory PathShape.line() = LineShape;
const factory PathShape.triangle({
@Default(BasicColors.transparent) int fillColor,
}) = TriangleShape;

factory PathShape.fromJson(Map<String, dynamic> json) =>
_$PathShapeFromJson(json);
Expand Down

0 comments on commit 1e596fb

Please sign in to comment.