Public Access
feat(ui): declutter appBar information for journeyDetails
This commit is contained in:
+8
-6
@@ -579,13 +579,15 @@ class _JourneyDetailPageState extends State<JourneyDetailPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: ListTile(
|
title: Column(
|
||||||
title: Text(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
'${widget.singleJourney.startStation} → ${widget.singleJourney.endStation}',
|
children: [
|
||||||
),
|
Text('Connection Details'),
|
||||||
subtitle: Text(
|
Text(
|
||||||
'${widget.singleJourney.duration.toString().split(".")[0]}h',
|
'Duration: ${widget.singleJourney.duration.toString().split(".")[0]}h',
|
||||||
|
textScaler: TextScaler.linear(0.7),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
|
|||||||
Reference in New Issue
Block a user