Public Access
feat(ui): add better descriptors
This commit is contained in:
+20
-5
@@ -180,7 +180,7 @@ class _ChooseStationPageState extends State<ChooseStationPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(title: const Text('RoutePicker')),
|
appBar: AppBar(title: const Text('Start a Journey')),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
@@ -194,7 +194,7 @@ class _ChooseStationPageState extends State<ChooseStationPage> {
|
|||||||
builder: (BuildContext context, SearchController controller) {
|
builder: (BuildContext context, SearchController controller) {
|
||||||
return SearchBar(
|
return SearchBar(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
hintText: 'Search for a Station',
|
hintText: 'Search your start Station',
|
||||||
padding: const WidgetStatePropertyAll<EdgeInsets>(
|
padding: const WidgetStatePropertyAll<EdgeInsets>(
|
||||||
EdgeInsets.symmetric(horizontal: 16.0),
|
EdgeInsets.symmetric(horizontal: 16.0),
|
||||||
),
|
),
|
||||||
@@ -323,12 +323,27 @@ class _ChooseDeparturePageState extends State<ChooseDeparturePage> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: Text(
|
||||||
'RoutePicker for ${widget.startStation.name} // ${widget.journeyId}',
|
'Departures for ${widget.startStation.name}',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
Builder(
|
||||||
|
builder: (context) {
|
||||||
|
if (widget.arrival != null) {
|
||||||
|
return ListTile(
|
||||||
|
title: Text(
|
||||||
|
'arrive at ${widget.arrival?.arrivalTime}',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return ListTile(
|
||||||
|
title: Text(''),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 400,
|
height: 400,
|
||||||
@@ -439,7 +454,7 @@ class _ChooseArrivalPageState extends State<ChooseArrivalPage> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: Text(
|
||||||
'Arrivals for ${widget.departure.vehicleName}// ${widget.journeyId}',
|
'Arrivals for ${widget.departure.vehicleName}',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
@@ -644,7 +659,7 @@ class _JourneyOverviewPageState extends State<JourneyOverviewPage> {
|
|||||||
height: 100.0,
|
height: 100.0,
|
||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.center,
|
||||||
child: Text("Your Journeys"),
|
child: Text("Your Journeys"),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user