use the shape in RaisedButton in Flutter

 

How to use the shape in RaisedButton in Flutter?

If you want to get something fancier, it is highly recommended to use the Image for the background of RaisedButton, and then you can use an ExImage for the icon.

 

raisedbutton shape flutter

By RakshaDRakshaD on Feb 08, 2021
shape: RoundedRectangleBorder(
  borderRadius: BorderRadius.circular(18.0),
  side: BorderSide(color: Theme.of(context).primaryColor),
),

Add Comment

2

rounded raisedbutton in flutter

By Tough TarantulaTough Tarantula on Aug 29, 2020
    
        RaisedButton(
                onPressed: () {},
                color: Colors.amber,
                shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(10)),
                child: Text("Click This"),
              )
    

Source: mightytechno.com

Add Comment

5

flutter button border radius

By Panicky PandaPanicky Panda on May 20, 2020
shape: RoundedRectangleBorder(
  borderRadius: BorderRadius.circular(18.0),
  side: BorderSide(color: Colors.red)
),

Source: stackoverflow.com

Add Comment

9

rounded button flutter

By B3N73NB3N73N on Jun 30, 2020
FlatButton(
              color: Colors.red,
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(18.0)),
              child: new Text('round button'),
              onPressed: () {},
            ),

Source: stackoverflow.com

Add Comment

5

flutter raisedbutton example

By Victorious VendaceVictorious Vendace on Apr 15, 2020
RaisedButton(child: Text("Rock & Roll"),
                onPressed: _changeText,
                color: Colors.red,
                textColor: Colors.yellow,
                padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
                splashColor: Colors.grey,
              )

Source: flutterrdart.com

Add Comment

2

Basic RaisedButton is a simple widget that could be used to implement an awesome UI on the screen.


Comments