Flutter app that shows upcoming departures for BVG stops using REST API.
- Search for BVG stops with auto complete suggestions.
- Selection of one stop from the auto complete suggestions.
- Ascending ordered list of the next 30 departures from the selected stop.
- Each departure list item shows name, icon, direction, time, potentials delays or cancellations and a platform.
- Clear the search field and start with a new search for a stop
- Loading state until the data is available.
- Error state if the data is unavailable.
- Empty state if there are no results.
- BLoC pattern for state management.
- Dependency injection using
get_it. - Localization for
EnglishandDeutschusingflutter_localizations. - Clean architecture with Data, Domain, and Presentation layers.
- Unit tests for DataSource, Repository, UseCase, and Bloc.
- Widget tests for main page views.
-
GoRouterfor navigation. -
Diofor network calls.
| Home | Search | Departures | Error |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| Search & List Departures |
|---|
lanes_planes_app.mp4 |
Make sure you have following or latest flutter/dart sdk installed on your machine. If not, follow the instructions here.
flutter: 3.32.8
dart: 3.8.1
- Generated files are added to git, but in case you need fresh copies, run the following commands:
$ flutter pub get
$ dart run build_runner build --delete-conflicting-outputs- To run the app, launch from VS Code or use the following command:
$ flutter run --target lib/main.dart


