Skip to content

asadbaidar/lanes_planes_flutter

Repository files navigation

Lanes & Planes - BVG Departures

Flutter app that shows upcoming departures for BVG stops using REST API.

Features

  • 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 English and Deutsch using flutter_localizations.
  • Clean architecture with Data, Domain, and Presentation layers.
  • Unit tests for DataSource, Repository, UseCase, and Bloc.
  • Widget tests for main page views.
  • GoRouter for navigation.
  • Dio for network calls.

Screenshots

Home Search Departures Error
Home Search Departures Error

Screen recording

Search & List Departures
lanes_planes_app.mp4

Pre-requisites

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

Setup

  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
  1. To run the app, launch from VS Code or use the following command:
$ flutter run --target lib/main.dart

About

Flutter app that shows upcoming departures for BVG stops using REST API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages