draft_widget 1.0.0 draft_widget: ^1.0.0 copied to clipboard
Flutter widget to draft widgets, transform their position, scale and rotation.
draft_widget #
Flutter widget to draft widgets
Features #
- Translate
- Scale
- Rotate
Getting started #
dependencies:
draft_widget: ^1.0.0
Usage #
DraftWidget(
sketch: {
1: {
'position': const Rect.fromLTWH(150, 150, 304, 304),
'widget': Image.asset('images/ending_dash.png', fit: BoxFit.cover),
'angle': pi / 4,
},
},
);
Additional information #
Feel free to give feedback.