Umut Arpat
Umut Arpat

Reputation: 566

How can I make a RaisedButton shape like this?

I want to shape a RaisedButton like this:

Shape of button

How can i do that ?

 ButtonTheme(
        minWidth: 120,
        height: 40.0,
        child: RaisedButton(
          padding: const EdgeInsets.all(8.0),
          textColor: Colors.white,
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(20),
          ),
          color: Colors.redAccent,
          onPressed: () {},
          child: new Text("Giriş"),
        ));

Upvotes: 0

Views: 69

Answers (1)

srikanth7785
srikanth7785

Reputation: 1522

You can get it done by giving BeveledRectangleBorder to the shape property...

Here's a minimal example for you..

shape: BeveledRectangleBorder(
         borderRadius: BorderRadius.all(Radius.circular(2))
      ),

Hope it solves your issue..!

Upvotes: 3

Related Questions