Go to file
Christoph Giess 5e0d78c325 Initial version 2022-10-18 15:07:13 +02:00
android Initial version 2022-10-18 15:07:13 +02:00
lib Initial version 2022-10-18 15:07:13 +02:00
linux Initial version 2022-10-18 15:07:13 +02:00
test Initial version 2022-10-18 15:07:13 +02:00
web Initial version 2022-10-18 15:07:13 +02:00
.gitignore Initial version 2022-10-18 15:07:13 +02:00
README.md Initial version 2022-10-18 15:07:13 +02:00
analysis_options.yaml Initial version 2022-10-18 15:07:13 +02:00
l10n.yaml Initial version 2022-10-18 15:07:13 +02:00
pubspec.yaml Initial version 2022-10-18 15:07:13 +02:00

README.md

Flutter Demo GPS-App

This is a sample application that demonstrates some of the features which can be found in many Flutter apps, e.g.

  • Provider and BLoC pattern
  • Accessing the GPS sensor
  • Streams as data provider
  • Localization
  • Own Widgets
  • Storing files
  • ...

Getting Started

gps_bloc_app.dart and gps_provider_app.dart are two implementations of the GPS app. The first uses the BLoC pattern, the latter the provider pattern. Both can be executed from the IDE and the command line, e.g.

flutter run lib/gps_provider_app.dart

To build an app for Android or iOS, one of these files hast to be linked or renamed to main.dart.

Tested with Flutter (Channel stable, 3.3.4, on Ubuntu 22.04.1) and

  • Android
  • Linux
  • Web
    Note: ensure that browser provides GPS coordinates
    • Google Chrome works
    • Ungoogled Chromium does not