xxxxxxxxxx
OutlinedButton(
style: ButtonStyle(
shape: MaterialStateProperty.resolveWith<RoundedRectangleBorder?>(
(Set<MaterialState> states) {
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16));
},
),
),
onPressed: () {},
child: const Text('Submit'),
);
xxxxxxxxxx
RaisedButton(
onPressed: () {},
color: Colors.amber,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
child: Text("Click This"),
)
xxxxxxxxxx
OutlinedButton(
child: Text('Woolha.com'),
style: OutlinedButton.styleFrom(
primary: Colors.white,
backgroundColor: Colors.teal,
shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(10))),
),
)
xxxxxxxxxx
ElevatedButton(
onPressed: () {},
style: ElevatedButton.styleFrom(
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(30.0),
),
),
child: Text(
"Click ME!!"
),
)
xxxxxxxxxx
ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
),
)
xxxxxxxxxx
RaisedButton( shape: StadiumBorder(), onPressed: () {}, child: Text("Button"),)