raisedbutton flutter size code example
Example 1: rounded raisedbutton in flutter
RaisedButton(
onPressed: () {},
color: Colors.amber,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
child: Text("Click This"),
)
Example 2: 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 3: raisedbutton full width flutter
FractionallySizedBox(
widthFactor: 1,
child: RaisedButton.icon(
onPressed: () {
print(comment);
},
label: Text('Edit Comment', style: TextStyle(color: Colors.white)),
icon: Icon(Icons.check, color: Colors.white),
),
),