Instantly share code, notes, and snippets.

Embed
What would you like to do?
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
AirAsiaBar(height: 210.0),
Positioned.fill(
child: Padding(
padding: EdgeInsets.only(
top: MediaQuery.of(context).padding.top + 40.0),
child: new Column(
children: <Widget>[
_buildButtonsRow(),
Container(), //TODO: Implement a card
],
),
),
),
],
),
);
}
Widget _buildButtonsRow() {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: <Widget>[
new RoundedButton(text: "ONE WAY"),
new RoundedButton(text: "ROUND"),
new RoundedButton(text: "MULTICITY", selected: true),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment