cl_offset 0.0.1 cl_offset: ^0.0.1 copied to clipboard
Add offset to widget
add widget extension to extend the widget class
Features #
Widget move({double x = 0, double y = 0}) Widget offset({double x = 0, double y = 0}) Widget scale({double x = 1, double y = 1, Alignment basePoint = Alignment.center}) Widget rotate({double angle = 0, Alignment basePoint = Alignment.center}) Widget flip({bool horizontal = false, bool vertical = false}) Widget skew({double horizontal = 0, double vertical = 0, Alignment basePoint = Alignment.center}) Widget rotateX({double angle = 0, Alignment basePoint = Alignment.center}) Widget rotateY({double angle = 0, Alignment basePoint = Alignment.center})
Getting started #
add cl_offset into pubspec.yaml
add extension functions to any widget
Usage #
var txt = Text('test')
txt.move(x:20, y:0)