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

parameterdescriptiondefault
childchild widget (usually a Text widget)This is a required parameter
widthwidth of button120.0
heightheight of button50.0
marginMargin around the buttonEdgeInsets.only(left: 1, right: 1)
borderWidthStroke of border around button1
borderColorcolor of bordercolor of button
boxShadowshadow of buttonThis is an optional parameter
buttonColorcolor of buttonColors.blue
onPressedVoid call-back of buttonoverride this for listening the call back when button is pressed
tiltcontrols the parallelogram tilt with max = 70 or min = -7010

more detail

Libraries

shaped_buttons