diff --git a/lib/main.dart b/lib/main.dart index ee79cda..7ff8eaa 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -807,9 +807,58 @@ class JourneyList extends StatelessWidget { return ListView( children: [ for (Journey jour in journeys) - ListTile( - title: Text('${jour.startStation} to ${jour.endStation}'), - onTap: () => onTapped(jour), + Card( + margin: EdgeInsets.only( + left: 3.0, + top: 3.0, + bottom: 3.0, + right: 3.0, + ), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.all( + Radius.circular(0.0), + ), + ), + elevation: 0.3, + clipBehavior: .hardEdge, + child: InkWell( + child: Column( + mainAxisSize: .min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Container( + padding: EdgeInsets.only( + left: 15.0, + top: 7.0, + bottom: 7.0, + right: 10.0, + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '${jour.startStation}', + textScaler: TextScaler.linear(1.2), + ), + Row( + children: [ + Icon( + Icons.arrow_right_alt, + size: 25.0, + ), + Text( + '${jour.endStation}', + textScaler: TextScaler.linear(1.2), + ), + ], + ), + ], + ), + ), + ], + ), + onTap: () => onTapped(jour), + ), ), ], );