shuttleList function
Implementation
Widget shuttleList(int idx, Function _containsFilter, Function _jumpMap) {
return ScrollablePositionedList.builder(
itemCount: shuttleTimeLists[idx].length,
initialScrollIndex: _getTimeIndex(shuttleTimeLists[idx]),
itemBuilder: (context, index) {
var curStopList = shuttleStopLists[idx];
var curTimeList = shuttleTimeLists[idx];
// if (!_containsFilter(curStopList, curTimeList, index) ||
// curTimeList[index] == "- - - -") {
// return null;
// }
return Card(
child: ListTile(
leading: Icon(Icons.airport_shuttle),
title: Text(curStopList[index % curStopList.length][0]),
subtitle: Text(curTimeList[index]),
trailing: Icon(Icons.arrow_forward),
onTap: () {
// _jumpMap(double.parse(curStopList[index % curStopList.length][1]),
// double.parse(curStopList[index % curStopList.length][2]));
},
),
);
},
);
}