Extracted the common logic for building the ListView for bus timings to a method called buildTimingList.
Removed some unused code such as the initial variable declarations in _BusDetailsState and removed the initState since it was empty.
Simplified the GestureDetector widgets for both city and campus.
Used the new buildTimingList function in the FutureBuilder for both city and campus bus timings.
Extracted the common logic for building the ListView for bus timings to a method called buildTimingList. Removed some unused code such as the initial variable declarations in _BusDetailsState and removed the initState since it was empty. Simplified the GestureDetector widgets for both city and campus. Used the new buildTimingList function in the FutureBuilder for both city and campus bus timings.