Public Access
feat(ui): add better descriptors
This commit is contained in:
+20
-5
@@ -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"),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user