|
|
|
@ -214,59 +214,62 @@ class TrainInfoBodyCupertino extends TrainInfoBodyShared {
|
|
|
|
|
return Row( |
|
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
constraints: const BoxConstraints( |
|
|
|
|
minWidth: 400, |
|
|
|
|
maxWidth: 400, |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
|
children: [ |
|
|
|
|
DisplayTrainID(trainData: trainData), |
|
|
|
|
DisplayTrainOperator(trainData: trainData), |
|
|
|
|
DisplayTrainRoute(trainData: trainData), |
|
|
|
|
DisplayTrainDeparture(trainData: trainData), |
|
|
|
|
const CupertinoDivider( |
|
|
|
|
color: foregroundWhite, |
|
|
|
|
), |
|
|
|
|
DisplayTrainLastInfo(trainData: trainData), |
|
|
|
|
const CupertinoDivider(), |
|
|
|
|
IntrinsicHeight( |
|
|
|
|
child: Row( |
|
|
|
|
children: <Widget>[ |
|
|
|
|
// Expanded( |
|
|
|
|
// child: DisplayTrainNextStop(trainData: trainData,), |
|
|
|
|
// ), |
|
|
|
|
Expanded( |
|
|
|
|
child: DisplayTrainRouteDuration( |
|
|
|
|
trainData: trainData, |
|
|
|
|
SafeArea( |
|
|
|
|
right: false, |
|
|
|
|
child: Container( |
|
|
|
|
constraints: const BoxConstraints( |
|
|
|
|
minWidth: 400, |
|
|
|
|
maxWidth: 400, |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
|
children: [ |
|
|
|
|
DisplayTrainID(trainData: trainData), |
|
|
|
|
DisplayTrainOperator(trainData: trainData), |
|
|
|
|
DisplayTrainRoute(trainData: trainData), |
|
|
|
|
DisplayTrainDeparture(trainData: trainData), |
|
|
|
|
const CupertinoDivider( |
|
|
|
|
color: foregroundWhite, |
|
|
|
|
), |
|
|
|
|
DisplayTrainLastInfo(trainData: trainData), |
|
|
|
|
const CupertinoDivider(), |
|
|
|
|
IntrinsicHeight( |
|
|
|
|
child: Row( |
|
|
|
|
children: <Widget>[ |
|
|
|
|
// Expanded( |
|
|
|
|
// child: DisplayTrainNextStop(trainData: trainData,), |
|
|
|
|
// ), |
|
|
|
|
Expanded( |
|
|
|
|
child: DisplayTrainRouteDuration( |
|
|
|
|
trainData: trainData, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
// Expanded( |
|
|
|
|
// child: DisplayTrainDestination(trainData: trainData,), |
|
|
|
|
// ), |
|
|
|
|
const SizedBox( |
|
|
|
|
height: double.infinity, |
|
|
|
|
child: CupertinoVerticalDivider(), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: DisplayTrainRouteDistance( |
|
|
|
|
trainData: trainData, |
|
|
|
|
// Expanded( |
|
|
|
|
// child: DisplayTrainDestination(trainData: trainData,), |
|
|
|
|
// ), |
|
|
|
|
const SizedBox( |
|
|
|
|
height: double.infinity, |
|
|
|
|
child: CupertinoVerticalDivider(), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
Expanded( |
|
|
|
|
child: DisplayTrainRouteDistance( |
|
|
|
|
trainData: trainData, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
const CupertinoDivider( |
|
|
|
|
color: foregroundWhite, |
|
|
|
|
), |
|
|
|
|
if (onViewYesterdayTrain != null && trainData.stations.first.departure!.scheduleTime.compareTo(DateTime.now()) > 0) ...[ |
|
|
|
|
DisplayTrainYesterdayWarningCupertino(onViewYesterdayTrain!), |
|
|
|
|
const CupertinoDivider( |
|
|
|
|
color: foregroundWhite, |
|
|
|
|
), |
|
|
|
|
if (onViewYesterdayTrain != null && trainData.stations.first.departure!.scheduleTime.compareTo(DateTime.now()) > 0) ...[ |
|
|
|
|
DisplayTrainYesterdayWarningCupertino(onViewYesterdayTrain!), |
|
|
|
|
const CupertinoDivider( |
|
|
|
|
color: foregroundWhite, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|