Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit f57ef77

Browse files
committed
Fixed favouriteTrips and added recentTrip
1 parent 3ecd8e1 commit f57ef77

File tree

4 files changed

+218
-75
lines changed

4 files changed

+218
-75
lines changed

lib/AllStops.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class _AllStopsState extends State<AllStopsPage> {
3737
bool _isLoading = true;
3838
bool _networkStatus = false;
3939

40-
final ScrollController _scrollController = ScrollController();
40+
final ScrollController scrollController = ScrollController();
4141
final TextEditingController _textController = TextEditingController();
4242

4343
Future<List<Stop>> fetchStops() async {
@@ -207,9 +207,9 @@ class _AllStopsState extends State<AllStopsPage> {
207207
? CircularProgressIndicator()
208208
: DraggableScrollbar.semicircle(
209209
backgroundColor: Theme.of(context).backgroundColor,
210-
controller: _scrollController,
210+
controller: scrollController,
211211
child: ListView.builder(
212-
controller: _scrollController,
212+
controller: scrollController,
213213
scrollDirection: Axis.vertical,
214214
itemCount: _favoritesForDisplay.length + _stopsForDisplay.length,
215215
itemBuilder: (context, index) {

0 commit comments

Comments
 (0)