From 18de9a9504ff9a4892fea07e883a8198951868a5 Mon Sep 17 00:00:00 2001 From: fbachus Date: Sat, 1 Aug 2026 01:47:55 +0200 Subject: [PATCH] feat(ui): add better descriptors --- lib/main.dart | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 846b8cd..431d166 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -180,7 +180,7 @@ class _ChooseStationPageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: const Text('RoutePicker')), + appBar: AppBar(title: const Text('Start a Journey')), body: Center( child: Column( children: [ @@ -194,7 +194,7 @@ class _ChooseStationPageState extends State { builder: (BuildContext context, SearchController controller) { return SearchBar( controller: controller, - hintText: 'Search for a Station', + hintText: 'Search your start Station', padding: const WidgetStatePropertyAll( EdgeInsets.symmetric(horizontal: 16.0), ), @@ -323,12 +323,27 @@ class _ChooseDeparturePageState extends State { return Scaffold( appBar: AppBar( title: Text( - 'RoutePicker for ${widget.startStation.name} // ${widget.journeyId}', + 'Departures for ${widget.startStation.name}', ), ), body: Center( child: Column( children: [ + Builder( + builder: (context) { + if (widget.arrival != null) { + return ListTile( + title: Text( + 'arrive at ${widget.arrival?.arrivalTime}', + ), + ); + } else { + return ListTile( + title: Text(''), + ); + } + }, + ), Expanded( child: SizedBox( height: 400, @@ -439,7 +454,7 @@ class _ChooseArrivalPageState extends State { return Scaffold( appBar: AppBar( title: Text( - 'Arrivals for ${widget.departure.vehicleName}// ${widget.journeyId}', + 'Arrivals for ${widget.departure.vehicleName}', ), ), body: Center( @@ -644,7 +659,7 @@ class _JourneyOverviewPageState extends State { height: 100.0, child: FittedBox( fit: BoxFit.contain, - alignment: Alignment.centerLeft, + alignment: Alignment.center, child: Text("Your Journeys"), ), ),