flutter raisedbutton shape code example

Example 1: raisedbutton shape flutter

shape: RoundedRectangleBorder(
  borderRadius: BorderRadius.circular(18.0),
  side: BorderSide(color: Theme.of(context).primaryColor),
),

Example 2: rounded raisedbutton in flutter

RaisedButton(
                onPressed: () {},
                color: Colors.amber,
                shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(10)),
                child: Text("Click This"),
              )

Example 3: flutter button border radius

shape: RoundedRectangleBorder(
  borderRadius: BorderRadius.circular(18.0),
  side: BorderSide(color: Colors.red)
),

Example 4: flutter raisedbutton example

RaisedButton(child: Text("Rock & Roll"),
                onPressed: _changeText,
                color: Colors.red,
                textColor: Colors.yellow,
                padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
                splashColor: Colors.grey,
              )

Example 5: how to set button radius in flutter

RaisedButton(  shape: StadiumBorder(),  onPressed: () {},  child: Text("Button"),)

Example 6: how to change the shape of a buton in flutter to cicular

RawMaterialButton(
  ...,
  shape: CircleBorder(),
)

Tags:

Misc Example