4.Container and Raised Button - siddhpatil6/Flutter GitHub Wiki
Container Widget
- container helps to set margin and padding
class FlightBookButton extends StatelessWidget
{
@override
Widget build(BuildContext context) {
// TODO: implement build
return Container(
margin: EdgeInsets.only(top: 30.0),
width: 250.0,
height: 60.0,
child: RaisedButton(
child: Text("Book Your Ticket",
style: TextStyle(
fontSize: 16.0
),),
color: Colors.deepOrange,
elevation: 6.0,
onPressed:() => bookFlight(context)
),
);
}