|
|
@ -714,7 +714,7 @@ class DisplayTrainDestination extends StatelessWidget { |
|
|
|
Builder( |
|
|
|
Builder( |
|
|
|
builder: (context) { |
|
|
|
builder: (context) { |
|
|
|
final arrival = |
|
|
|
final arrival = |
|
|
|
DateTime.parse(trainData.stations.last.arrival!.scheduleTime).toLocal(); |
|
|
|
trainData.stations.last.arrival!.scheduleTime.toLocal(); |
|
|
|
final delay = trainData.stations.last.arrival!.status?.delay ?? 0; |
|
|
|
final delay = trainData.stations.last.arrival!.status?.delay ?? 0; |
|
|
|
// final parts = arrival.split(':'); |
|
|
|
// final parts = arrival.split(':'); |
|
|
|
// final arrivalDT = DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day, int.parse(parts[0]), int.parse(parts[1])); |
|
|
|
// final arrivalDT = DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day, int.parse(parts[0]), int.parse(parts[1])); |
|
|
@ -827,9 +827,9 @@ class DisplayTrainRouteDuration extends StatelessWidget { |
|
|
|
Builder( |
|
|
|
Builder( |
|
|
|
builder: (context) { |
|
|
|
builder: (context) { |
|
|
|
var duration = |
|
|
|
var duration = |
|
|
|
DateTime.parse(trainData.stations.last.arrival!.scheduleTime) |
|
|
|
trainData.stations.last.arrival!.scheduleTime |
|
|
|
.difference(DateTime.parse( |
|
|
|
.difference( |
|
|
|
trainData.stations.first.departure!.scheduleTime)); |
|
|
|
trainData.stations.first.departure!.scheduleTime); |
|
|
|
var durationString = StringBuffer(); |
|
|
|
var durationString = StringBuffer(); |
|
|
|
|
|
|
|
|
|
|
|
bool firstWritten = false; |
|
|
|
bool firstWritten = false; |
|
|
|