cl_offset 0.0.1 copy "cl_offset: ^0.0.1" to clipboard
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)

Additional information #

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Add offset to widget

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on cl_offset