shaped_buttons 0.0.2 copy "shaped_buttons: ^0.0.2" to clipboard
shaped_buttons: ^0.0.2 copied to clipboard

shaped_buttons is a flutter library that allows you to create parallelogram shaped buttons.

shaped_buttons #

Language: English

Shaped Buttons is a flutter library that allows you to create parallelogram shaped featured buttons.

How to use it. #

the default plain parallelogram

  ParallalogramButton(
                child: Text(
                  "Regular Button",
                  style: TextStyle(color: Colors.black),
                ),
                onPressed: () {
                  print('Button Pressed');
                },
              ),

and you can also define custom properties.

 ParallalogramButton(
                width: 200,
                borderColor: Colors.black,
                buttonColor: Colors.yellow[700],
                borderWdth: 5,
                child: Text(
                  "Button with border",
                  style: TextStyle(color: Colors.black),
                ),
                onPressed: () {
                  print('Button Pressed');
                },
              ),

parameters #

parameter description default
child child widget (usually a Text widget) This is a required parameter
width width of button 120.0
height height of button 50.0
margin Margin around the button EdgeInsets.only(left: 1, right: 1)
borderWidth Stroke of border around button 1
borderColor color of border color of button
boxShadow shadow of button This is an optional parameter
buttonColor color of button Colors.blue
onPressed Void call-back of button override this for listening the call back when button is pressed
tilt controls the parallelogram tilt with max = 70 or min = -70 10

more detail

9
likes
40
pub points
18%
popularity

Publisher

unverified uploader

shaped_buttons is a flutter library that allows you to create parallelogram shaped buttons.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on shaped_buttons