feat(ui): add better descriptors

This commit is contained in:
fbachus
2026-08-01 01:47:55 +02:00
parent 84c8c267b9
commit 18de9a9504
+20 -5
View File
@@ -180,7 +180,7 @@ class _ChooseStationPageState extends State<ChooseStationPage> {
@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<ChooseStationPage> {
builder: (BuildContext context, SearchController controller) {
return SearchBar(
controller: controller,
hintText: 'Search for a Station',
hintText: 'Search your start Station',
padding: const WidgetStatePropertyAll<EdgeInsets>(
EdgeInsets.symmetric(horizontal: 16.0),
),
@@ -323,12 +323,27 @@ class _ChooseDeparturePageState extends State<ChooseDeparturePage> {
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<ChooseArrivalPage> {
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<JourneyOverviewPage> {
height: 100.0,
child: FittedBox(
fit: BoxFit.contain,
alignment: Alignment.centerLeft,
alignment: Alignment.center,
child: Text("Your Journeys"),
),
),