Skip to content

Commit

Permalink
Remove unused shape widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Sep 13, 2023
1 parent cea61dc commit 7b313ef
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions lib/src/widgets/shape.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,58 +40,6 @@ class ShapeWidget extends StatelessWidget {
}
}

class ArrowWidget extends StatelessWidget {
const ArrowWidget({
super.key,
required this.color,
required this.size,
required this.orientation,
required this.fromCoord,
required this.toCoord,
});

final Color color;
final double size;
final Side orientation;
final Coord fromCoord;
final Coord toCoord;

@override
Widget build(BuildContext context) {
return SizedBox.square(
dimension: size,
child: CustomPaint(
painter: _ArrowPainter(color, orientation, fromCoord, toCoord),
),
);
}
}

class CircleWidget extends StatelessWidget {
const CircleWidget({
super.key,
required this.color,
required this.size,
required this.orientation,
required this.coord,
});

final Color color;
final double size;
final Side orientation;
final Coord coord;

@override
Widget build(BuildContext context) {
return SizedBox.square(
dimension: size,
child: CustomPaint(
painter: _CirclePainter(color, orientation, coord),
),
);
}
}

class _ArrowPainter extends CustomPainter {
_ArrowPainter(this.color, this.orientation, this.fromCoord, this.toCoord);

Expand Down

0 comments on commit 7b313ef

Please sign in to comment.