Skip to content

Instantly share code, notes, and snippets.

@asavchuk
Last active January 9, 2021 08:18
Show Gist options
  • Save asavchuk/b5bd196d72f6722114c0168e96c76101 to your computer and use it in GitHub Desktop.
Save asavchuk/b5bd196d72f6722114c0168e96c76101 to your computer and use it in GitHub Desktop.
Widget buildSelectedDetails(BuildContext context, Trip trip) {
return Hero(
tag: "SelectedTrip-${trip.title}",
transitionOnUserGestures: true,
child: Container(
child: Padding(
padding: const EdgeInsets.only(
left: 8.0,
right: 8.0,
),
child: SingleChildScrollView(
child: Card(
child: Row(
children: <Widget>[
Expanded(
child: Padding(
padding: const EdgeInsets.only(
top: 16.0, left: 16.0, bottom: 16.0),
child: Column(
children: <Widget>[
Row(
children: <Widget>[
Text(trip.title, style: TextStyle(fontSize: 30.0)),
],
),
Row(
children: <Widget>[
Text("Average Budget -- Not set up yet®"),
],
),
Row(
children: <Widget>[
Text("Trip Dates"),
],
),
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment