|
|
@ -19,7 +19,11 @@ class DisplayTrainStation extends StatelessWidget { |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
children: <Widget>[ |
|
|
|
children: <Widget>[ |
|
|
|
Builder( |
|
|
|
Expanded( |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
|
|
|
|
child: Align( |
|
|
|
|
|
|
|
alignment: Alignment.centerLeft, |
|
|
|
|
|
|
|
child: Builder( |
|
|
|
builder: (context) { |
|
|
|
builder: (context) { |
|
|
|
final departureStatus = station.departure?.status; |
|
|
|
final departureStatus = station.departure?.status; |
|
|
|
final arrivalStatus = station.arrival?.status; |
|
|
|
final arrivalStatus = station.arrival?.status; |
|
|
@ -55,15 +59,20 @@ class DisplayTrainStation extends StatelessWidget { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
), |
|
|
|
), |
|
|
|
Expanded( |
|
|
|
), |
|
|
|
child: Title( |
|
|
|
), |
|
|
|
|
|
|
|
Title( |
|
|
|
station: station, |
|
|
|
station: station, |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
|
|
|
|
child: (station.platform == null) |
|
|
|
|
|
|
|
? Container() |
|
|
|
|
|
|
|
: Align( |
|
|
|
|
|
|
|
alignment: Alignment.centerRight, |
|
|
|
|
|
|
|
child: Badge(text: station.platform!, caption: 'linia',), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
if (station.platform == null) |
|
|
|
|
|
|
|
Container(width: isSmallScreen(context) ? 42 : 48, height: isSmallScreen(context) ? 42 : 48,) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
Badge(text: station.platform!, caption: 'linia',), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
Time( |
|
|
|
Time( |
|
|
|