Shuttle Tracker in Flutter

Overview

Codemagic build status

Flutter ShuttleTracker

Flutter ShuttleTracker is a cross-platform port of ShuttleTracker that utilizes the Flutter SDK for development.

Showcase

Features

  • Map page that contains live updates for shuttles, routes, and stops

  • Routes page that allows users to see each route in detail and its associated stops

  • Schedules page that directs users to the schedules for all routes

  • Settings page that allows users to customize the app to their liking

  • Dark Mode

  • Automatic route toggling based on time of day

Setting up

  1. Install Flutter
  2. Clone the repository to your computer
  3. Open the project in your preferred editor
    • NOTE: VS Code and Android Studio are the recommended editors for Flutter
  4. Retrieve all the required dependencies with flutter pub get
  5. If you're in a different Flutter release channel, switch back to stable with flutter channel stable
  6. Open your preferred emulator (Android or iOS)
  7. Run the app by clicking the "green play button" on the top right of Android Studio or VS Code

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the GNU Affero General Public License - see the LICENSE.md file for details

Comments
  • cannot build app

    cannot build app

    /Users/pranav/.pub-cache/hosted/pub.dartlang.org/sqflite-1.2.1/ios/Classes/SqflitePlugin.m:2:9: warning: non-portable path to file '<fmdb/FMDB.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <FMDB/FMDB.h> ^~~~~~~~~~~~~ <fmdb/FMDB.h> 1 warning generated.

    Compiler message:
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:66:23: Error: Type 'ActionFactory' not found.
      final Map<LocalKey, ActionFactory> actions;
                          ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:95:21: Error: Type 'ActionFactory' not found.
          Map<LocalKey, ActionFactory> actions,
                        ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:151:21: Error: Type 'ActionFactory' not found.
          Map<LocalKey, ActionFactory> actions,
                        ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:218:23: Error: Type 'ActionFactory' not found.
      final Map<LocalKey, ActionFactory> actions;
                          ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:66:23: Error: 'ActionFactory' isn't a type.
      final Map<LocalKey, ActionFactory> actions;
                          ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:95:21: Error: 'ActionFactory' isn't a type.
          Map<LocalKey, ActionFactory> actions,
                        ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:151:21: Error: 'ActionFactory' isn't a type.
          Map<LocalKey, ActionFactory> actions,
                        ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:218:23: Error: 'ActionFactory' isn't a type.
      final Map<LocalKey, ActionFactory> actions;
                          ^^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:306:30: Error: The argument type 'Map<LocalKey, invalid-type>' can't be assigned to the
    parameter type 'Map<Type, Action<Intent>>'.
     - 'Map' is from 'dart:core'.
     - 'LocalKey' is from 'package:flutter/src/foundation/key.dart' ('../../../flutter/packages/flutter/lib/src/foundation/key.dart').
     - 'Type' is from 'dart:core'.
     - 'Action' is from 'package:flutter/src/widgets/actions.dart' ('../../../flutter/packages/flutter/lib/src/widgets/actions.dart').
     - 'Intent' is from 'package:flutter/src/widgets/actions.dart' ('../../../flutter/packages/flutter/lib/src/widgets/actions.dart').
          actions: data?.actions ?? actions,
                                 ^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.41.0/lib/src/platform_app.dart:359:30: Error: The argument type 'Map<LocalKey, invalid-type>' can't be assigned to the
    parameter type 'Map<Type, Action<Intent>>'.
     - 'Map' is from 'dart:core'.
     - 'LocalKey' is from 'package:flutter/src/foundation/key.dart' ('../../../flutter/packages/flutter/lib/src/foundation/key.dart').
     - 'Type' is from 'dart:core'.
     - 'Action' is from 'package:flutter/src/widgets/actions.dart' ('../../../flutter/packages/flutter/lib/src/widgets/actions.dart').
     - 'Intent' is from 'package:flutter/src/widgets/actions.dart' ('../../../flutter/packages/flutter/lib/src/widgets/actions.dart').
          actions: data?.actions ?? actions,
                                 ^
    ../../../.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_settings-0.3.0/lib/widgets/secret.dart:41:58: Error: Getter not found: 'obscuringCharacter'.
                      _show ? widget.secret : RenderEditable.obscuringCharacter * widget.secret.length,
                                                             ^^^^^^^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Planning build
    note: Constructing build description
    
    opened by pranavpandey1998official 3
  • Add flutter web support

    Add flutter web support

    As indirectly requested in this issue, adding support for web builds. To achieve this, I also bumped all package versions to the latest ones to get the project to compile.

    opened by klydra 2
  • Test color helper functions

    Test color helper functions

    Added a new test group for the helper functions shadeColor and shadeValue. One of these tests uses the luma coefficients from the Recommendation 709 standard to determine and compare the darkness of a color after altering the shade by different amounts, and the other simply compares the blue channel of a color after its shade has been altered by different amounts.

    opened by MattCzyr 0
  • Test provider and repository

    Test provider and repository

    Created tests to ensure the data received from the provider and repository is valid. Since no assumptions can be made about the data that will be received at any given time, these tests primarily ensure that nothing received from the datafeed is null, everything is the proper type, and dark routes have the proper color and have a corresponding light route.

    opened by MattCzyr 0
  • Test models

    Test models

    Created tests for the creation of routes, points, schedules, stops, ETAs, and updates from JSON objects, as well as various functionality of each model such as ensuring dark routes have the proper color.

    opened by MattCzyr 0
  • Stop animation bug

    Stop animation bug

    After disconnecting from networking services, the AnimationController runs into the following error:

    ════════ Exception caught by animation library ═════════════════════════════════ The following StateError was thrown while notifying listeners for AnimationController: Bad state: Cannot add new events after calling close

    When the exception was thrown, this was the stack #2 MapState.emitMapEvent package:flutter_map/…/map/map.dart:223 #3 MapState._handleMoveEmit package:flutter_map/…/map/map.dart:209 #4 MapState.move package:flutter_map/…/map/map.dart:303 #5 MapControllerImpl.move package:flutter_map/…/map/map.dart:41 #6 _MapPageState._animatedMapMove. package:flutter_shuttletracker/…/map_page/map_page.dart:54 ... The AnimationController notifying listeners was: AnimationController#6f6c7(▶ 0.067) ════════════════════════════════════════════════════════════════════════════════

    bug 
    opened by samuelobe 0
Owner
RPI Web Technologies Group
WebTech is a student-run group that produces technological solutions to benefit RPI students.
RPI Web Technologies Group
Flutter Community - A central place for community made Flutter content.

Flutter Community A central place for community made Flutter content. The Flutter Community is an organization aimed at providing a central place for

Flutter Community 1.3k Jan 1, 2023
MapBox-GL-flutter - MapBox GL flutter package

MapBox GL - Flutter This app use MapBox If you want to run this code, please rep

Brandon Rojas 2 May 29, 2022
Mapbox-flutter - A repository to demonstrate the use of Mapbox - it's Maps and Navigation SDKs in a Flutter application

MapBox Flutter This repository contains code corresponding to the Youtube video

AB Satyaprakash 39 Dec 30, 2022
Flutter Maps A Flutter app using Google Maps SDK & Directions API

Flutter Maps A Flutter app using Google Maps SDK & Directions API Plugins The plugins used in this project are: google_maps_flutter geolocator flutter

Salsabil Mohamed Hemada 1 Jul 15, 2022
A flutter plugin for Google Maps

IMPORTANT: This plugin is no longer under development Why? We initially built this plugin to fill an early gap in flutter. Since then, Google has made

AppTree Software, Inc 415 Dec 29, 2022
Flutter plugin for forward and reverse geocoding

geocoder Forward and reverse geocoding. Usage Import package:geocoder/geocoder.dart, and use the Geocoder.local to access geocoding services provided

Aloïs Deniel 177 Dec 31, 2022
Moved to https://github.com/tobrun/flutter-mapbox-gl

Please note that this project has moved. Please head to https://github.com/tobrun/flutter-mapbox-gl for updates. Flutter Mapbox GL Native This Flutter

Mapbox 258 Oct 16, 2022
A flutter package for select a city from svg map.

City Picker From Map A flutter package for select a city from svg map. Supported countries (+150) are here. Screenshots Getting Started In the pubspec

Ahmet ÇELİK 49 Nov 17, 2022
Flutter Google Maps Tutorial

Flutter Google Maps Tutorial YouTube Video Setup Get an API Key at https://cloud.google.com/maps-platform/ Enable Maps SDK for Android, Maps SDK for i

Marcus Ng 85 Nov 30, 2022
Flutter Tutorial - Google Map with Live Location Tracking

Flutter Tutorial - Google Map with Live Location Tracking Build Google Map app with Live Location Tracking in Flutter. ✌   App Preview Android Preview

Samuel Adekunle 10 Dec 22, 2022
Map Picker for Flutter

Map Pin Picker A Vendor-free map Library for Easy and Quick Usage. Follow the steps to integrate Google Maps (https://pub.dev/packages/google_maps_flu

Akbar 16 Jul 15, 2022
This project was developed in Flutter for the challenge of mapping space trash in real-time proposed by NASA Space Apps Challenge.

This project was developed in Flutter for the challenge of mapping space trash in real-time proposed by NASA Space Apps Challenge.

Kauê Martins 1 Oct 3, 2021
Flutter Google Map Example - Day 41

Flutter Google Map Example - Day 41 class Afgprogrammer extends Flutter100DaysOfCode { video() { return { "title": "Flutter Google Map Exa

Mohammad Rahmani 74 Jan 3, 2023
A Flutter app using Google Maps SDK & Directions API

Flutter Maps A Flutter app using Google Maps SDK & Directions API Plugins The plugins used in this project are: google_maps_flutter geolocator flutter

Youhaan bootwala 1 Mar 18, 2022
Flutter plugin to display a simple flat world map with animated points in real time

Flutter Simple Map Flutter plugin to display a simple flat world map with animated points in real time. Can be used as a presentation of online users,

Vladyslav Korniienko 7 Dec 8, 2022
A Flutter app using Google Maps SDK & Directions API

Flutter Maps A Flutter app using Google Maps SDK & Directions API Plugins The plugins used in this project are: google_maps_flutter geolocator flutter

Varun CN 2 Apr 19, 2022
A Flutter package for iOS and Android for picking location and images.

location and image picker package for Flutter A Flutter package for iOS and Android for picking location and images. Demo Installation First, add loca

sk shamimul islam 9 Sep 28, 2022
Flutter geolocation plugin for Android and iOS.

geolocation Flutter geolocation plugin for Android API 16+ and iOS 9+. Features: Manual and automatic location permission management Current one-shot

Loup 222 Jan 2, 2023
A Flutter map widget inspired by Leaflet

flutter_map A Dart implementation of Leaflet for Flutter apps. Installation Add flutter_map to your pubspec: dependencies: flutter_map: any # or the

null 2.2k Dec 28, 2022