├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
└── .gitignore
├── lib
├── Models
│ └── User.dart
├── Screens
│ ├── Loading.dart
│ ├── HomePage.dart
│ ├── TestScreen.dart
│ ├── BusFilter.dart
│ ├── CreateAccountPage.dart
│ └── login.dart
├── main.dart
├── Widgets
│ ├── BezierContainer.dart
│ ├── CustomClipper.dart
│ └── MapWidget.dart
├── Animation
│ └── FadeAnimation.dart
└── Services
│ └── Auth.dart
├── assets
├── bus-1.png
├── bus-2.png
├── clock.png
├── zoomin.png
├── zoomout.png
└── background.png
├── android
├── gradle.properties
├── .gitignore
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── bus_location_tracker
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── build.gradle
├── .metadata
├── README.md
├── .gitignore
├── test
└── widget_test.dart
├── pubspec.yaml
└── pubspec.lock
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/Models/User.dart:
--------------------------------------------------------------------------------
1 | class User {
2 |
3 | final String uid;
4 |
5 | User({ this.uid });
6 | }
--------------------------------------------------------------------------------
/assets/bus-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/assets/bus-1.png
--------------------------------------------------------------------------------
/assets/bus-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/assets/bus-2.png
--------------------------------------------------------------------------------
/assets/clock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/assets/clock.png
--------------------------------------------------------------------------------
/assets/zoomin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/assets/zoomin.png
--------------------------------------------------------------------------------
/assets/zoomout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/assets/zoomout.png
--------------------------------------------------------------------------------
/assets/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/assets/background.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Sabir-Islam-Khan/bus_location_tracker/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 0b8abb4724aa590dd0f429683339b1e045a1594d
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/lib/Screens/Loading.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_spinkit/flutter_spinkit.dart';
3 |
4 | class Loading extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 |
8 | return Container(
9 |
10 | color: Color.fromRGBO(26, 26, 48, .9),
11 |
12 | child: Center(
13 | child: SpinKitCubeGrid(
14 | color: Colors.white,
15 | size: 100,
16 |
17 | ),
18 | ),
19 | );
20 | }
21 |
22 |
23 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/bus_location_tracker/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.bus_location_tracker
2 |
3 | import androidx.annotation.NonNull;
4 | import io.flutter.embedding.android.FlutterActivity
5 | import io.flutter.embedding.engine.FlutterEngine
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
10 | GeneratedPluginRegistrant.registerWith(flutterEngine);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # bus_location_tracker
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import './Services/Auth.dart';
4 |
5 | import './Screens/login.dart';
6 | import './Models/User.dart';
7 |
8 | main() {
9 | runApp(BusLocationTracker());
10 | }
11 |
12 | class BusLocationTracker extends StatefulWidget {
13 | @override
14 | State createState() {
15 | return BusLocationTrackerState();
16 | }
17 | }
18 |
19 | class BusLocationTrackerState extends State {
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return MaterialApp(
24 | home: LoginPage(),
25 | );
26 | }
27 | }
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/lib/Screens/HomePage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../Widgets/MapWidget.dart';
4 | class HomePage extends StatefulWidget {
5 |
6 | final String busId;
7 |
8 | HomePage(this.busId);
9 |
10 | @override
11 | _HomePageState createState() => _HomePageState();
12 | }
13 |
14 | class _HomePageState extends State {
15 | @override
16 | Widget build(BuildContext context) {
17 | return MaterialApp(
18 |
19 | home: Scaffold(
20 |
21 | appBar: AppBar( title: Text("Bus App"),
22 | backgroundColor: Color.fromRGBO(26, 26, 48, .9),),
23 |
24 | body: Container(
25 | child: MapWidget(
26 | widget.busId,
27 | ),
28 |
29 | ),
30 | ),
31 | );
32 | }
33 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Web related
34 | lib/generated_plugin_registrant.dart
35 |
36 | # Exceptions to above rules.
37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
38 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.3'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | }
26 | subprojects {
27 | project.evaluationDependsOn(':app')
28 | }
29 |
30 | task clean(type: Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/lib/Screens/TestScreen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Test extends StatefulWidget {
4 | @override
5 | _TestState createState() => _TestState();
6 | }
7 |
8 | class _TestState extends State {
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | height: 400.0,
13 | width: 300.0,
14 | color: Colors.amberAccent,
15 | child: Column(
16 | children: [
17 | Container(
18 | padding: EdgeInsets.only(left:30.0, top: 30.0),
19 | child: Text("Test Screen", style: TextStyle(fontSize: 40.0, fontWeight: FontWeight.bold),),
20 | ),
21 | Container(
22 | padding: EdgeInsets.only(left:30.0, top: 30.0),
23 | child: Text("Registration Succesfull", style: TextStyle(fontSize: 30.0, fontWeight: FontWeight.bold),),
24 | ),
25 | ],
26 | ),
27 | );
28 | }
29 | }
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/Widgets/BezierContainer.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:flutter/material.dart';
4 |
5 | import './CustomClipper.dart';
6 |
7 | class BezierContainer extends StatelessWidget {
8 | const BezierContainer({Key key}) : super(key: key);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Container(
13 | child: Transform.rotate(
14 | angle: -pi / 3.5,
15 | child: ClipPath(
16 | clipper: ClipPainter(),
17 | child: Container(
18 | height: MediaQuery.of(context).size.height *.5,
19 | width: MediaQuery.of(context).size.width,
20 | decoration: BoxDecoration(
21 | gradient: LinearGradient(
22 | begin: Alignment.topCenter,
23 | end: Alignment.bottomCenter,
24 | colors: [Color(0xfffbb448),Color(0xffe46b10)]
25 | )
26 | ),
27 | ),
28 | ),
29 | )
30 | );
31 | }
32 | }
--------------------------------------------------------------------------------
/lib/Animation/FadeAnimation.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:simple_animations/simple_animations.dart';
3 |
4 | class FadeAnimation extends StatelessWidget {
5 | final double delay;
6 | final Widget child;
7 |
8 | FadeAnimation(this.delay, this.child,);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | final tween = MultiTrackTween([
13 | Track("opacity").add(Duration(milliseconds: 500), Tween(begin: 0.0, end: 1.00)),
14 | Track("translateY").add(
15 | Duration(milliseconds: 500), Tween(begin: -30.0, end: 00.0),
16 | curve: Curves.easeOut)
17 | ]);
18 |
19 | return ControlledAnimation(
20 | delay: Duration(milliseconds: (500 * delay).round()),
21 | duration: tween.duration,
22 | tween: tween,
23 | child: child,
24 | builderWithChild: (context, child, animation) => Opacity(
25 | opacity: animation["opacity"],
26 | child: Transform.translate(
27 | offset: Offset(0, animation["translateY"]),
28 | child: child
29 | ),
30 | ),
31 | );
32 | }
33 | }
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:bus_location_tracker/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "990030919844",
4 | "firebase_url": "https://bus-location-tracker-3313f.firebaseio.com",
5 | "project_id": "bus-location-tracker-3313f",
6 | "storage_bucket": "bus-location-tracker-3313f.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:990030919844:android:6a015657f4296d70b08e31",
12 | "android_client_info": {
13 | "package_name": "com.example.bus_location_tracker"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "990030919844-nh68rmikofftrmamkohcnkj10f8tvhch.apps.googleusercontent.com",
19 | "client_type": 3
20 | }
21 | ],
22 | "api_key": [
23 | {
24 | "current_key": "AIzaSyCMCoFRwCq0ifxn8-cdq00Ugf_I-MO0u9s"
25 | }
26 | ],
27 | "services": {
28 | "appinvite_service": {
29 | "other_platform_oauth_client": [
30 | {
31 | "client_id": "990030919844-nh68rmikofftrmamkohcnkj10f8tvhch.apps.googleusercontent.com",
32 | "client_type": 3
33 | }
34 | ]
35 | }
36 | }
37 | }
38 | ],
39 | "configuration_version": "1"
40 | }
--------------------------------------------------------------------------------
/lib/Services/Auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 |
3 | import '../Models/User.dart';
4 |
5 | class AuthService {
6 |
7 | final FirebaseAuth _auth = FirebaseAuth.instance;
8 |
9 | // Sign in with mail
10 | Future signInWithMail(String mail, String password) async {
11 |
12 | try {
13 |
14 | AuthResult result = await _auth.signInWithEmailAndPassword(email: mail, password: password);
15 |
16 | FirebaseUser user = result.user;
17 |
18 | return _userFromFirebaseUser(user);
19 |
20 | } catch(e){
21 |
22 | print(e.toString());
23 |
24 | return null;
25 |
26 | }
27 | }
28 |
29 |
30 | // Register with mail function
31 | Future registerWithMail(String mail, String password) async {
32 |
33 | try {
34 |
35 | AuthResult result = await _auth.createUserWithEmailAndPassword(email: mail, password: password);
36 |
37 | FirebaseUser user = result.user;
38 |
39 | return _userFromFirebaseUser(user);
40 |
41 | } catch(e){
42 |
43 | print(e.toString());
44 |
45 | return null;
46 |
47 | }
48 | }
49 |
50 | User _userFromFirebaseUser( FirebaseUser user ) {
51 |
52 | return user != null ? User( uid : user.uid) : null ;
53 | }
54 |
55 | Stream get user {
56 | return _auth.onAuthStateChanged
57 | //.map((FirebaseUser user) => _userFromFirebaseUser(user));
58 | .map(_userFromFirebaseUser);
59 | }
60 |
61 | }
--------------------------------------------------------------------------------
/lib/Widgets/CustomClipper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/painting.dart';
3 |
4 | class ClipPainter extends CustomClipper{
5 | @override
6 |
7 | Path getClip(Size size) {
8 | var height = size.height;
9 | var width = size.width;
10 | var path = new Path();
11 |
12 | path.lineTo(0, size.height );
13 | path.lineTo(size.width , height);
14 | path.lineTo(size.width , 0);
15 |
16 | /// [Top Left corner]
17 | var secondControlPoint = Offset(0 ,0);
18 | var secondEndPoint = Offset(width * .2 , height *.3);
19 | path.quadraticBezierTo(secondControlPoint.dx, secondControlPoint.dy, secondEndPoint.dx, secondEndPoint.dy);
20 |
21 |
22 |
23 | /// [Left Middle]
24 | var fifthControlPoint = Offset(width * .3 ,height * .5);
25 | var fiftEndPoint = Offset( width * .23, height *.6);
26 | path.quadraticBezierTo(fifthControlPoint.dx, fifthControlPoint.dy, fiftEndPoint.dx, fiftEndPoint.dy);
27 |
28 |
29 | /// [Bottom Left corner]
30 | var thirdControlPoint = Offset(0 ,height);
31 | var thirdEndPoint = Offset(width , height );
32 | path.quadraticBezierTo(thirdControlPoint.dx, thirdControlPoint.dy, thirdEndPoint.dx, thirdEndPoint.dy);
33 |
34 |
35 |
36 | path.lineTo(0, size.height );
37 | path.close();
38 |
39 | return path;
40 | }
41 |
42 | @override
43 | bool shouldReclip(CustomClipper oldClipper) {
44 | // TODO: implement shouldReclip
45 | return true;
46 | }
47 |
48 |
49 | }
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | bus_location_tracker
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
9 |
10 |
14 |
21 |
22 |
23 |
24 |
25 |
26 |
28 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.bus_location_tracker"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
47 | multiDexEnabled true
48 | }
49 |
50 | buildTypes {
51 | release {
52 | // TODO: Add your own signing config for the release build.
53 | // Signing with the debug keys for now, so `flutter run --release` works.
54 | signingConfig signingConfigs.debug
55 | }
56 | }
57 | }
58 |
59 | flutter {
60 | source '../..'
61 | }
62 |
63 | dependencies {
64 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
65 | testImplementation 'junit:junit:4.12'
66 | androidTestImplementation 'androidx.test:runner:1.1.1'
67 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
68 | }
69 | apply plugin: 'com.google.gms.google-services'
70 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: bus_location_tracker
2 | description: A new Flutter project.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | cloud_firestore: ^0.13.0+1
23 | firebase_auth:
24 | simple_animations:
25 | google_fonts:
26 | rflutter_alert:
27 | flutter_spinkit:
28 | provider:
29 | shared_preferences:
30 | flutter_map:
31 | http:
32 | geocoder:
33 | location:
34 |
35 | # The following adds the Cupertino Icons font to your application.
36 | # Use with the CupertinoIcons class for iOS style icons.
37 | cupertino_icons: ^0.1.2
38 |
39 | dev_dependencies:
40 | flutter_test:
41 | sdk: flutter
42 |
43 |
44 | # For information on the generic Dart part of this file, see the
45 | # following page: https://dart.dev/tools/pub/pubspec
46 |
47 | # The following section is specific to Flutter.
48 | flutter:
49 |
50 | # The following line ensures that the Material Icons font is
51 | # included with your application, so that you can use the icons in
52 | # the material Icons class.
53 | uses-material-design: true
54 |
55 | # To add assets to your application, add an assets section, like this:
56 | assets:
57 | - assets/background.png
58 | - assets/bus-1.png
59 | - assets/bus-2.png
60 | - assets/clock.png
61 | - assets/zoomin.png
62 | - assets/zoomout.png
63 |
64 | # An image asset can refer to one or more resolution-specific "variants", see
65 | # https://flutter.dev/assets-and-images/#resolution-aware.
66 |
67 | # For details regarding adding assets from package dependencies, see
68 | # https://flutter.dev/assets-and-images/#from-packages
69 |
70 | # To add custom fonts to your application, add a fonts section here,
71 | # in this "flutter" section. Each entry in this list should have a
72 | # "family" key with the font family name, and a "fonts" key with a
73 | # list giving the asset and other descriptors for the font. For
74 | # example:
75 | # fonts:
76 | # - family: Schyler
77 | # fonts:
78 | # - asset: fonts/Schyler-Regular.ttf
79 | # - asset: fonts/Schyler-Italic.ttf
80 | # style: italic
81 | # - family: Trajan Pro
82 | # fonts:
83 | # - asset: fonts/TrajanPro.ttf
84 | # - asset: fonts/TrajanPro_Bold.ttf
85 | # weight: 700
86 | #
87 | # For details regarding fonts from package dependencies,
88 | # see https://flutter.dev/custom-fonts/#from-packages
89 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/Widgets/MapWidget.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:async';
3 |
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_map/flutter_map.dart';
6 | import 'package:latlong/latlong.dart';
7 | import 'package:geocoder/geocoder.dart';
8 |
9 | import 'package:http/http.dart' as http;
10 |
11 |
12 | class MapWidget extends StatefulWidget {
13 |
14 | String busId;
15 | MapWidget(this.busId);
16 |
17 | @override
18 | createState() => _MapWidgetState();
19 | }
20 |
21 | class _MapWidgetState extends State {
22 |
23 | MapController mapController;
24 | var JSONURL;
25 | // initial location for testing
26 | double lat = 24.91515, long = 84.43516666666666;
27 | @override
28 | void initState() {
29 | super.initState();
30 | JSONURL = "https://bus-location-tracker-3313f.firebaseio.com/vehicles/${widget.busId}.json";
31 | mapController = MapController();
32 | updateLocation();
33 | locationTimer();
34 | getAddress();
35 | }
36 |
37 | // function for updating location each 5 second
38 |
39 | void locationTimer() {
40 | Timer.periodic(Duration(seconds: 5), (timer) {
41 | print("Location Updated");
42 | updateLocation();
43 | getAddress();
44 | });
45 | }
46 | // function to fetch data from database and decode that
47 | void updateLocation(){
48 | http.get(JSONURL).then((response){
49 | print(response.body);
50 | var json_data = json.decode(response.body);
51 | setState(() {
52 | lat = json_data["gps_pos_x"];
53 | long = json_data["gps_pos_y"];
54 | mapController.move(LatLng(lat, long), zoom);
55 | });
56 | });
57 |
58 | }
59 |
60 | // map zoom position NOTE: it's better with the range from 15-19
61 | double zoom = 15;
62 |
63 | // geocoding section Working
64 | void getAddress() async {
65 |
66 | final coordinates = new Coordinates(lat, long);
67 | var addresses = await Geocoder.local.findAddressesFromCoordinates(coordinates);
68 | var first = addresses.first;
69 | print("${first.featureName} : ${first.addressLine}");
70 |
71 | String street = first.addressLine;
72 |
73 | setState(() {
74 | streetName = street;
75 | });
76 | }
77 |
78 | String streetName = 'Fetching Street Address';
79 |
80 | @override
81 | Widget build(BuildContext context) {
82 | return Column(
83 | children: [
84 | Container(
85 |
86 | height: MediaQuery.of(context).size.height * 0.7,
87 | width: MediaQuery.of(context).size.width * 1,
88 | child: new FlutterMap(
89 | mapController: mapController,
90 | options: new MapOptions(
91 | center: new LatLng(lat, long),
92 | zoom: zoom,
93 | ),
94 | layers: [
95 | new TileLayerOptions(
96 | urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
97 | subdomains: ['a', 'b', 'c']
98 | ),
99 | new MarkerLayerOptions(
100 | markers: [
101 | new Marker(
102 | width: 80.0,
103 | height: 80.0,
104 | point: new LatLng(lat, long),
105 | builder: (ctx) =>
106 | new Container(
107 | child: Image(
108 | image: AssetImage('assets/bus-2.png')
109 | ),
110 | ),
111 | ),
112 | ],
113 | ),
114 | ],
115 | ),
116 | ),
117 |
118 | Text(
119 | streetName,
120 | style: TextStyle(
121 | fontSize: 30.0
122 | ),
123 | ),
124 | ],
125 | );
126 | }
127 | }
--------------------------------------------------------------------------------
/lib/Screens/BusFilter.dart:
--------------------------------------------------------------------------------
1 | import 'package:bus_location_tracker/Screens/HomePage.dart';
2 | import 'package:bus_location_tracker/Widgets/MapWidget.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:cloud_firestore/cloud_firestore.dart';
5 |
6 | class BusFilter extends StatefulWidget {
7 | @override
8 | _BusFilterState createState() => _BusFilterState();
9 | }
10 |
11 | class _BusFilterState extends State {
12 | final db = Firestore.instance;
13 |
14 | String searchText;
15 |
16 | // Container for searched
17 |
18 | Container searcedItem(DocumentSnapshot a, BuildContext ctx) {
19 | return Container(
20 | color: Colors.blueAccent,
21 | height: 160.0,
22 | width: MediaQuery.of(ctx).size.width * 1,
23 | margin: EdgeInsets.only(
24 | left: 5.0,
25 | right: 5.0,
26 | top: 10.0,
27 | ),
28 | child: Card(
29 | elevation: 20.0,
30 | child: Container(
31 | color: Color.fromRGBO(26, 27, 45, 1),
32 | child: Padding(
33 | padding: EdgeInsets.all(10.0),
34 | child: Column(
35 | children: [
36 | GestureDetector(
37 | onTap: () {
38 | String id = a.data['coach'];
39 | Navigator.push(context,
40 | MaterialPageRoute(builder: (context) => HomePage(id)));
41 | print(id);
42 | },
43 | child: Text(
44 | a.data['name'],
45 | style: TextStyle(
46 | color: Colors.white,
47 | fontSize: 35.0,
48 | fontWeight: FontWeight.bold,
49 | ),
50 | ),
51 | ),
52 | Text(
53 | a.data['route'],
54 | style: TextStyle(
55 | color: Colors.amberAccent,
56 | fontStyle: FontStyle.italic,
57 | fontSize: 20.0,
58 | ),
59 | ),
60 | Text(
61 | "Departure: ${a.data['depart']}",
62 | style: TextStyle(
63 | fontSize: 20.0,
64 | color: Colors.white,
65 | fontWeight: FontWeight.bold,
66 | ),
67 | ),
68 | Text(
69 | "Coach No: ${a.data['coach']}",
70 | style: TextStyle(
71 | fontSize: 20.0,
72 | fontStyle: FontStyle.italic,
73 | color: Colors.amberAccent,
74 | ),
75 | ),
76 | ],
77 | ),
78 | ),
79 | ),
80 | ),
81 | );
82 | }
83 |
84 | // Container for main display list
85 | Container buildItem(DocumentSnapshot doc, BuildContext ctx) {
86 | return Container(
87 | color: Colors.blueAccent,
88 | height: 160.0,
89 | width: MediaQuery.of(ctx).size.width * 1,
90 | margin: EdgeInsets.only(
91 | left: 5.0,
92 | right: 5.0,
93 | top: 10.0,
94 | ),
95 | child: Card(
96 | elevation: 20.0,
97 | child: Container(
98 | color: Color.fromRGBO(26, 27, 45, 1),
99 | child: Padding(
100 | padding: EdgeInsets.all(10.0),
101 | child: Column(
102 | children: [
103 | GestureDetector(
104 | onTap: () {
105 | String id = doc.data['coach'];
106 | Navigator.push(context,
107 | MaterialPageRoute(builder: (context) => HomePage(id)));
108 | print(id);
109 | },
110 | child: Text(
111 | doc.data['name'],
112 | style: TextStyle(
113 | color: Colors.white,
114 | fontSize: 35.0,
115 | fontWeight: FontWeight.bold,
116 | ),
117 | ),
118 | ),
119 | Text(
120 | doc.data['route'],
121 | style: TextStyle(
122 | color: Colors.amberAccent,
123 | fontStyle: FontStyle.italic,
124 | fontSize: 20.0,
125 | ),
126 | ),
127 | Text(
128 | "Departure: ${doc.data['depart']}",
129 | style: TextStyle(
130 | fontSize: 20.0,
131 | color: Colors.white,
132 | fontWeight: FontWeight.bold,
133 | ),
134 | ),
135 | Text(
136 | "Coach No: ${doc.data['coach']}",
137 | style: TextStyle(
138 | fontSize: 20.0,
139 | fontStyle: FontStyle.italic,
140 | color: Colors.amberAccent,
141 | ),
142 | ),
143 | ],
144 | ),
145 | ),
146 | ),
147 | ),
148 | );
149 | }
150 |
151 | @override
152 | Widget build(BuildContext context) {
153 | return Scaffold(
154 | appBar: AppBar(
155 | title: Text('Bus app'),
156 | ),
157 | body: SingleChildScrollView(
158 | child: Column(
159 | children: [
160 | TextField(
161 | decoration: InputDecoration(
162 | contentPadding: EdgeInsets.only(left: 10.0, right: 10.0),
163 | hintText: ' Search with Coach Number...',
164 | hintStyle: TextStyle(
165 | color: Colors.black,
166 | ),
167 | ),
168 | onChanged: (text) {
169 | text = text.toUpperCase();
170 |
171 | setState(() {
172 | searchText = text;
173 | });
174 | },
175 | ),
176 | searchText == null
177 | ? StreamBuilder(
178 | stream: db.collection('BUSES').snapshots(),
179 | builder: (context, snapshot) {
180 | if (snapshot.hasData) {
181 | return Column(
182 | children: snapshot.data.documents
183 | .map((doc) => buildItem(doc, context))
184 | .toList(),
185 | );
186 | } else {
187 | return SizedBox();
188 | }
189 | },
190 | )
191 | : StreamBuilder(
192 | stream: db.collection('BUSES').snapshots(),
193 | builder: (context, snapshot) {
194 | if (snapshot.hasData) {
195 | final results = snapshot.data.documents.where(
196 | (DocumentSnapshot a) =>
197 | a.data['coach']
198 | .toString()
199 | .contains(searchText) ||
200 | a.data['name']
201 | .toString()
202 | .toUpperCase()
203 | .contains(searchText));
204 | return Column(
205 | children: results
206 | .map((a) => searcedItem(a, context))
207 | .toList(),
208 | );
209 | } else {
210 | return SizedBox();
211 | }
212 | },
213 | ),
214 | ],
215 | ),
216 | ),
217 | );
218 | }
219 | }
220 |
--------------------------------------------------------------------------------
/lib/Screens/CreateAccountPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:bus_location_tracker/Services/Auth.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:google_fonts/google_fonts.dart';
4 | import 'package:cloud_firestore/cloud_firestore.dart';
5 | import 'package:firebase_auth/firebase_auth.dart';
6 | import 'package:rflutter_alert/rflutter_alert.dart';
7 |
8 | import '../Widgets/BezierContainer.dart';
9 | import '../Animation/FadeAnimation.dart';
10 | import '../Screens/TestScreen.dart';
11 | import '../Screens/Loading.dart';
12 |
13 | class CreateAccount extends StatefulWidget {
14 | @override
15 | State createState() {
16 | return CreateAccountState();
17 | }
18 | }
19 |
20 | class CreateAccountState extends State {
21 | // Controllers and other variables
22 | final nameController = TextEditingController();
23 | final mailController = TextEditingController();
24 | final passwordController = TextEditingController();
25 |
26 | final AuthService _auth = AuthService();
27 | final db = Firestore.instance;
28 | bool loading = false;
29 |
30 | // Widget for Top button
31 | @override
32 | Widget _backButton() {
33 | return InkWell(
34 | onTap: () {
35 | Navigator.pop(context);
36 | },
37 | child: Container(
38 | padding: EdgeInsets.symmetric(horizontal: 10),
39 | child: Row(
40 | children: [
41 | Container(
42 | padding: EdgeInsets.only(left: 0, top: 10, bottom: 10),
43 | child: Icon(Icons.keyboard_arrow_left, color: Color(0xffe46b10)),
44 | ),
45 | Text('Back',
46 | style: TextStyle(
47 | fontSize: 13,
48 | fontWeight: FontWeight.w500,
49 | color: Color(0xffe46b10)))
50 | ],
51 | ),
52 | ),
53 | );
54 | }
55 |
56 | // Widget for entry field
57 | // This is actually a combination to code less
58 |
59 | Widget _entryField(String title, TextEditingController txController,
60 | {bool isPassword = false}) {
61 | return Container(
62 | margin: EdgeInsets.symmetric(vertical: 10),
63 | child: Column(
64 | crossAxisAlignment: CrossAxisAlignment.start,
65 | children: [
66 | Text(
67 | title,
68 | style: TextStyle(
69 | fontWeight: FontWeight.bold,
70 | fontSize: 15,
71 | color: Color(0xffe46b10)),
72 | ),
73 | SizedBox(
74 | height: 10,
75 | ),
76 |
77 | // Maybe convert this into form later
78 | // It works for now
79 | TextField(
80 | obscureText: isPassword,
81 | decoration: InputDecoration(
82 | border: InputBorder.none,
83 | fillColor: Color(0xfff3f3f4),
84 | filled: true),
85 | controller: txController,
86 | )
87 | ],
88 | ),
89 | );
90 | }
91 |
92 | // Register button
93 | // some process needs to be changed later
94 | Widget _submitButton() {
95 | return FadeAnimation(
96 | 3.4,
97 | GestureDetector(
98 | onTap: () async {
99 | // Have to crate efficient validator later
100 | String user = nameController.value.text;
101 | String mail = mailController.value.text;
102 | String password = passwordController.value.text;
103 |
104 | int mailValidate = 0;
105 | int passValidate = 0;
106 |
107 | if (mail.isNotEmpty) {
108 | mailValidate = 1;
109 | }
110 |
111 | if (password.length >= 6) {
112 | passValidate = 1;
113 | }
114 | // change the validation later
115 | // TODO: This is for you Sohan
116 | if (mailValidate == 0 && passValidate == 0) {
117 | print("Enter valid info !");
118 | } else if (mailValidate == 1 && passValidate == 1) {
119 | print("Validator Works !");
120 |
121 | setState(() {
122 | loading = true;
123 | });
124 | dynamic result = await _auth.registerWithMail(mail, password);
125 |
126 | if (result == null) {
127 | // do something later on
128 | setState(() {
129 | loading = false;
130 |
131 | Alert(
132 | context: context,
133 | type: AlertType.error,
134 | title: "Error !!",
135 | desc: "User not Found. Check credentials !",
136 | buttons: [
137 | DialogButton(
138 | child: Text(
139 | "Okay",
140 | style: TextStyle(color: Colors.white, fontSize: 20),
141 | ),
142 | onPressed: () => Navigator.pop(context),
143 | width: 120,
144 | )
145 | ],
146 | ).show();
147 | });
148 | } else {
149 | Navigator.push(
150 | context,
151 | MaterialPageRoute(builder: (context) => Test()),
152 | );
153 | }
154 |
155 | nameController.clear();
156 | mailController.clear();
157 | passwordController.clear();
158 | }
159 |
160 | // createData();
161 | },
162 | child: Container(
163 | width: MediaQuery.of(context).size.width,
164 | padding: EdgeInsets.symmetric(vertical: 15),
165 | alignment: Alignment.center,
166 | decoration: BoxDecoration(
167 | borderRadius: BorderRadius.all(Radius.circular(5)),
168 | boxShadow: [
169 | BoxShadow(
170 | color: Colors.grey.shade200,
171 | offset: Offset(2, 4),
172 | blurRadius: 5,
173 | spreadRadius: 2)
174 | ],
175 | gradient: LinearGradient(
176 | begin: Alignment.centerLeft,
177 | end: Alignment.centerRight,
178 | colors: [Color(0xfffbb448), Color(0xfff7892b)])),
179 | child: FadeAnimation(
180 | 1.5,
181 | Text(
182 | 'Register Now',
183 | style: TextStyle(fontSize: 20, color: Colors.white),
184 | ),
185 | )),
186 | ),
187 | );
188 | }
189 |
190 | // label on the bottom of the page
191 | Widget _loginAccountLabel() {
192 | return Container(
193 | margin: EdgeInsets.symmetric(vertical: 20),
194 | alignment: Alignment.bottomCenter,
195 | child: Row(
196 | mainAxisAlignment: MainAxisAlignment.center,
197 | children: [
198 | FadeAnimation(
199 | 3.7,
200 | Text('Already have an account ?',
201 | style: TextStyle(
202 | fontSize: 13,
203 | fontWeight: FontWeight.w600,
204 | color: Colors.white)),
205 | ),
206 | SizedBox(
207 | width: 10,
208 | ),
209 | InkWell(
210 | onTap: () {},
211 |
212 | // TODO: convert this into button later
213 | child: FadeAnimation(
214 | 3.7,
215 | Text(
216 | 'Login',
217 | style: TextStyle(
218 | color: Color(0xfff79c4f),
219 | fontSize: 13,
220 | fontWeight: FontWeight.w600),
221 | ),
222 | ))
223 | ],
224 | ),
225 | );
226 | }
227 |
228 | // widget for the title
229 | Widget _title() {
230 | return FadeAnimation(
231 | 1.8,
232 | RichText(
233 | textAlign: TextAlign.center,
234 | text: TextSpan(
235 | text: 'B',
236 | style: GoogleFonts.portLligatSans(
237 | textStyle: Theme.of(context).textTheme.display1,
238 | fontSize: 30,
239 | fontWeight: FontWeight.w700,
240 | color: Color(0xffe46b10),
241 | ),
242 | children: [
243 | TextSpan(
244 | text: 'u',
245 | style: TextStyle(color: Colors.white, fontSize: 30),
246 | ),
247 | TextSpan(
248 | text: 'S',
249 | style: TextStyle(color: Color(0xffe46b10), fontSize: 30),
250 | ),
251 | TextSpan(
252 | text: ' A',
253 | style: TextStyle(color: Color(0xffe46b10), fontSize: 30),
254 | ),
255 | TextSpan(
256 | text: 'p',
257 | style: TextStyle(color: Colors.white, fontSize: 30),
258 | ),
259 | TextSpan(
260 | text: 'P',
261 | style: TextStyle(color: Color(0xffe46b10), fontSize: 30),
262 | ),
263 | ]),
264 | ),
265 | );
266 | }
267 |
268 | // Entry fields column
269 | Widget _emailPasswordWidget() {
270 | return Column(
271 | children: [
272 | FadeAnimation(
273 | 2.2,
274 | _entryField("Username", nameController),
275 | ),
276 | FadeAnimation(2.6, _entryField("Email id", mailController)),
277 | FadeAnimation(
278 | 3.0, _entryField("Password", passwordController, isPassword: true)),
279 | ],
280 | );
281 | }
282 |
283 | // main page
284 | @override
285 | Widget build(BuildContext context) {
286 | return loading
287 | ? Loading()
288 | : Scaffold(
289 | backgroundColor: Color.fromRGBO(26, 26, 48, .9),
290 | body: SingleChildScrollView(
291 | child: Container(
292 | height: MediaQuery.of(context).size.height,
293 | child: Stack(
294 | children: [
295 | Container(
296 | padding: EdgeInsets.symmetric(horizontal: 20),
297 | child: Column(
298 | crossAxisAlignment: CrossAxisAlignment.center,
299 | mainAxisAlignment: MainAxisAlignment.center,
300 | children: [
301 | Expanded(
302 | flex: 3,
303 | child: SizedBox(),
304 | ),
305 | _title(),
306 | SizedBox(
307 | height: 50,
308 | ),
309 | _emailPasswordWidget(),
310 | SizedBox(
311 | height: 20,
312 | ),
313 | _submitButton(),
314 | Expanded(
315 | flex: 2,
316 | child: SizedBox(),
317 | )
318 | ],
319 | ),
320 | ),
321 | Align(
322 | alignment: Alignment.bottomCenter,
323 | child: _loginAccountLabel(),
324 | ),
325 | Positioned(top: 40, left: 0, child: _backButton()),
326 | Positioned(
327 | top: -MediaQuery.of(context).size.height * .15,
328 | right: -MediaQuery.of(context).size.width * .4,
329 | child: FadeAnimation(1, BezierContainer()))
330 | ],
331 | ),
332 | )));
333 | }
334 |
335 | // dont know need this or not
336 | // just keeping it in case gonna need it
337 | void createData() async {
338 | // DocumentReference ref = await db.collection('USERS').add(
339 | // {'name': '${nameController.value.text}',
340 | // 'mail': '${mailController.value.text}',
341 | // 'password': '${passwordController.value.text}',
342 | // },
343 | // );
344 | }
345 | }
346 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | ansicolor:
5 | dependency: transitive
6 | description:
7 | name: ansicolor
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "1.0.2"
11 | archive:
12 | dependency: transitive
13 | description:
14 | name: archive
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.0.11"
18 | args:
19 | dependency: transitive
20 | description:
21 | name: args
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.5.2"
25 | async:
26 | dependency: transitive
27 | description:
28 | name: async
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.4.0"
32 | boolean_selector:
33 | dependency: transitive
34 | description:
35 | name: boolean_selector
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.0.5"
39 | cached_network_image:
40 | dependency: transitive
41 | description:
42 | name: cached_network_image
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "2.0.0"
46 | charcode:
47 | dependency: transitive
48 | description:
49 | name: charcode
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.1.2"
53 | cloud_firestore:
54 | dependency: "direct main"
55 | description:
56 | name: cloud_firestore
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "0.13.3"
60 | cloud_firestore_platform_interface:
61 | dependency: transitive
62 | description:
63 | name: cloud_firestore_platform_interface
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.0.0"
67 | cloud_firestore_web:
68 | dependency: transitive
69 | description:
70 | name: cloud_firestore_web
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.1.0+3"
74 | collection:
75 | dependency: transitive
76 | description:
77 | name: collection
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.14.11"
81 | console_log_handler:
82 | dependency: transitive
83 | description:
84 | name: console_log_handler
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.1.6"
88 | convert:
89 | dependency: transitive
90 | description:
91 | name: convert
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "2.1.1"
95 | crypto:
96 | dependency: transitive
97 | description:
98 | name: crypto
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "2.1.3"
102 | cupertino_icons:
103 | dependency: "direct main"
104 | description:
105 | name: cupertino_icons
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "0.1.3"
109 | firebase:
110 | dependency: transitive
111 | description:
112 | name: firebase
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "7.2.1"
116 | firebase_auth:
117 | dependency: "direct main"
118 | description:
119 | name: firebase_auth
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "0.15.5+2"
123 | firebase_auth_platform_interface:
124 | dependency: transitive
125 | description:
126 | name: firebase_auth_platform_interface
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.1.7"
130 | firebase_auth_web:
131 | dependency: transitive
132 | description:
133 | name: firebase_auth_web
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "0.1.2"
137 | firebase_core:
138 | dependency: transitive
139 | description:
140 | name: firebase_core
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "0.4.4"
144 | firebase_core_platform_interface:
145 | dependency: transitive
146 | description:
147 | name: firebase_core_platform_interface
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "1.0.2"
151 | firebase_core_web:
152 | dependency: transitive
153 | description:
154 | name: firebase_core_web
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "0.1.1+2"
158 | flutter:
159 | dependency: "direct main"
160 | description: flutter
161 | source: sdk
162 | version: "0.0.0"
163 | flutter_cache_manager:
164 | dependency: transitive
165 | description:
166 | name: flutter_cache_manager
167 | url: "https://pub.dartlang.org"
168 | source: hosted
169 | version: "1.1.3"
170 | flutter_image:
171 | dependency: transitive
172 | description:
173 | name: flutter_image
174 | url: "https://pub.dartlang.org"
175 | source: hosted
176 | version: "3.0.0"
177 | flutter_map:
178 | dependency: "direct main"
179 | description:
180 | name: flutter_map
181 | url: "https://pub.dartlang.org"
182 | source: hosted
183 | version: "0.8.2"
184 | flutter_spinkit:
185 | dependency: "direct main"
186 | description:
187 | name: flutter_spinkit
188 | url: "https://pub.dartlang.org"
189 | source: hosted
190 | version: "4.1.2"
191 | flutter_test:
192 | dependency: "direct dev"
193 | description: flutter
194 | source: sdk
195 | version: "0.0.0"
196 | flutter_web_plugins:
197 | dependency: transitive
198 | description: flutter
199 | source: sdk
200 | version: "0.0.0"
201 | geocoder:
202 | dependency: "direct main"
203 | description:
204 | name: geocoder
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "0.2.1"
208 | google_fonts:
209 | dependency: "direct main"
210 | description:
211 | name: google_fonts
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "0.3.9"
215 | http:
216 | dependency: "direct main"
217 | description:
218 | name: http
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "0.12.0+4"
222 | http_parser:
223 | dependency: transitive
224 | description:
225 | name: http_parser
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "3.1.3"
229 | image:
230 | dependency: transitive
231 | description:
232 | name: image
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "2.1.4"
236 | intl:
237 | dependency: transitive
238 | description:
239 | name: intl
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "0.16.1"
243 | js:
244 | dependency: transitive
245 | description:
246 | name: js
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "0.6.1+1"
250 | latlong:
251 | dependency: transitive
252 | description:
253 | name: latlong
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "0.6.1"
257 | location:
258 | dependency: "direct main"
259 | description:
260 | name: location
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "2.5.4"
264 | logging:
265 | dependency: transitive
266 | description:
267 | name: logging
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "0.11.4"
271 | matcher:
272 | dependency: transitive
273 | description:
274 | name: matcher
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "0.12.6"
278 | meta:
279 | dependency: transitive
280 | description:
281 | name: meta
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.1.8"
285 | nested:
286 | dependency: transitive
287 | description:
288 | name: nested
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "0.0.4"
292 | path:
293 | dependency: transitive
294 | description:
295 | name: path
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "1.6.4"
299 | path_provider:
300 | dependency: transitive
301 | description:
302 | name: path_provider
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "1.6.1"
306 | pedantic:
307 | dependency: transitive
308 | description:
309 | name: pedantic
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "1.8.0+1"
313 | petitparser:
314 | dependency: transitive
315 | description:
316 | name: petitparser
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "2.4.0"
320 | platform:
321 | dependency: transitive
322 | description:
323 | name: platform
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "2.2.1"
327 | plugin_platform_interface:
328 | dependency: transitive
329 | description:
330 | name: plugin_platform_interface
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "1.0.2"
334 | positioned_tap_detector:
335 | dependency: transitive
336 | description:
337 | name: positioned_tap_detector
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "1.0.3"
341 | provider:
342 | dependency: "direct main"
343 | description:
344 | name: provider
345 | url: "https://pub.dartlang.org"
346 | source: hosted
347 | version: "4.0.4"
348 | quiver:
349 | dependency: transitive
350 | description:
351 | name: quiver
352 | url: "https://pub.dartlang.org"
353 | source: hosted
354 | version: "2.0.5"
355 | rflutter_alert:
356 | dependency: "direct main"
357 | description:
358 | name: rflutter_alert
359 | url: "https://pub.dartlang.org"
360 | source: hosted
361 | version: "1.0.3"
362 | shared_preferences:
363 | dependency: "direct main"
364 | description:
365 | name: shared_preferences
366 | url: "https://pub.dartlang.org"
367 | source: hosted
368 | version: "0.5.6+2"
369 | shared_preferences_macos:
370 | dependency: transitive
371 | description:
372 | name: shared_preferences_macos
373 | url: "https://pub.dartlang.org"
374 | source: hosted
375 | version: "0.0.1+6"
376 | shared_preferences_platform_interface:
377 | dependency: transitive
378 | description:
379 | name: shared_preferences_platform_interface
380 | url: "https://pub.dartlang.org"
381 | source: hosted
382 | version: "1.0.3"
383 | shared_preferences_web:
384 | dependency: transitive
385 | description:
386 | name: shared_preferences_web
387 | url: "https://pub.dartlang.org"
388 | source: hosted
389 | version: "0.1.2+4"
390 | simple_animations:
391 | dependency: "direct main"
392 | description:
393 | name: simple_animations
394 | url: "https://pub.dartlang.org"
395 | source: hosted
396 | version: "1.3.8"
397 | sky_engine:
398 | dependency: transitive
399 | description: flutter
400 | source: sdk
401 | version: "0.0.99"
402 | source_span:
403 | dependency: transitive
404 | description:
405 | name: source_span
406 | url: "https://pub.dartlang.org"
407 | source: hosted
408 | version: "1.5.5"
409 | sqflite:
410 | dependency: transitive
411 | description:
412 | name: sqflite
413 | url: "https://pub.dartlang.org"
414 | source: hosted
415 | version: "1.2.2+1"
416 | stack_trace:
417 | dependency: transitive
418 | description:
419 | name: stack_trace
420 | url: "https://pub.dartlang.org"
421 | source: hosted
422 | version: "1.9.3"
423 | stream_channel:
424 | dependency: transitive
425 | description:
426 | name: stream_channel
427 | url: "https://pub.dartlang.org"
428 | source: hosted
429 | version: "2.0.0"
430 | string_scanner:
431 | dependency: transitive
432 | description:
433 | name: string_scanner
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "1.0.5"
437 | synchronized:
438 | dependency: transitive
439 | description:
440 | name: synchronized
441 | url: "https://pub.dartlang.org"
442 | source: hosted
443 | version: "2.2.0"
444 | term_glyph:
445 | dependency: transitive
446 | description:
447 | name: term_glyph
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "1.1.0"
451 | test_api:
452 | dependency: transitive
453 | description:
454 | name: test_api
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "0.2.11"
458 | transparent_image:
459 | dependency: transitive
460 | description:
461 | name: transparent_image
462 | url: "https://pub.dartlang.org"
463 | source: hosted
464 | version: "1.0.0"
465 | tuple:
466 | dependency: transitive
467 | description:
468 | name: tuple
469 | url: "https://pub.dartlang.org"
470 | source: hosted
471 | version: "1.0.3"
472 | typed_data:
473 | dependency: transitive
474 | description:
475 | name: typed_data
476 | url: "https://pub.dartlang.org"
477 | source: hosted
478 | version: "1.1.6"
479 | uuid:
480 | dependency: transitive
481 | description:
482 | name: uuid
483 | url: "https://pub.dartlang.org"
484 | source: hosted
485 | version: "2.0.4"
486 | validate:
487 | dependency: transitive
488 | description:
489 | name: validate
490 | url: "https://pub.dartlang.org"
491 | source: hosted
492 | version: "1.7.0"
493 | vector_math:
494 | dependency: transitive
495 | description:
496 | name: vector_math
497 | url: "https://pub.dartlang.org"
498 | source: hosted
499 | version: "2.0.8"
500 | xml:
501 | dependency: transitive
502 | description:
503 | name: xml
504 | url: "https://pub.dartlang.org"
505 | source: hosted
506 | version: "3.5.0"
507 | sdks:
508 | dart: ">=2.7.0-dev <3.0.0"
509 | flutter: ">=1.12.13+hotfix.5 <2.0.0"
510 |
--------------------------------------------------------------------------------
/lib/Screens/login.dart:
--------------------------------------------------------------------------------
1 | import 'package:bus_location_tracker/Screens/HomePage.dart';
2 | import 'package:bus_location_tracker/Services/Auth.dart';
3 | import 'package:flutter/material.dart';
4 | import "package:rflutter_alert/rflutter_alert.dart";
5 | import 'package:shared_preferences/shared_preferences.dart';
6 |
7 | import '../Animation/FadeAnimation.dart';
8 | import './CreateAccountPage.dart';
9 | import 'package:bus_location_tracker/Screens/BusFilter.dart';
10 | import '../Screens/Loading.dart';
11 |
12 | class LoginPage extends StatefulWidget {
13 | @override
14 | State createState() {
15 | return LoginPageState();
16 | }
17 | }
18 |
19 | class LoginPageState extends State {
20 | final AuthService _auth = AuthService();
21 | final nameController = TextEditingController();
22 | final passwordController = TextEditingController();
23 |
24 | bool loading = false;
25 | bool isLogged = false;
26 |
27 | // app initializer
28 |
29 | @override
30 | void initState() {
31 |
32 | super.initState();
33 |
34 | screenChecker();
35 |
36 | }
37 |
38 | // function to determine loggedIn status. Called in Log in Button if true
39 |
40 | Future _loggedIn(bool state) async {
41 | final prefs = await SharedPreferences.getInstance();
42 |
43 |
44 | final test = await prefs.setBool('loginCheck', state);
45 |
46 | return test;
47 |
48 | }
49 |
50 | // fuction to determine which screen to show
51 |
52 | void screenChecker() async {
53 |
54 | final prefs = await SharedPreferences.getInstance();
55 |
56 | final checker = await prefs.getBool('loginCheck');
57 |
58 | if(checker == true ){
59 |
60 | Navigator.push(
61 | context,
62 | MaterialPageRoute(builder: (context) => BusFilter())
63 | );
64 | }
65 | }
66 | @override
67 | Widget build(BuildContext context) {
68 |
69 | return loading ? Loading() : Scaffold(
70 |
71 | // this line fix the error when keyboard pops up
72 | //whole pages background colour
73 | backgroundColor: Color.fromRGBO(26, 26, 48, .9),
74 | body: SingleChildScrollView(
75 | child: Column(
76 | children: [
77 | // main image on the top
78 | Container(
79 | height: MediaQuery.of(context).size.height * 0.45,
80 | decoration: BoxDecoration(
81 | image: DecorationImage(
82 | image: AssetImage('assets/background.png'),
83 | fit: BoxFit.fill)),
84 | child: Stack(
85 | children: [
86 | // Fast animation text
87 | Positioned(
88 | left: 50,
89 | width: 180,
90 | height: MediaQuery.of(context).size.height * 0.323,
91 | child: FadeAnimation(
92 | 1,
93 | Container(
94 | width: 120.0,
95 | margin: EdgeInsets.only(top: 235.0),
96 | child: Text(
97 | "Fast, Free",
98 | style: TextStyle(
99 | fontSize: 30.0,
100 | fontWeight: FontWeight.bold,
101 | color: Colors.white),
102 | ),
103 | )),
104 | ),
105 | // second animation text
106 | Positioned(
107 | left: 230,
108 | width: 190,
109 | height: MediaQuery.of(context).size.height * 0.327,
110 | child: FadeAnimation(
111 | 1.4,
112 | Container(
113 | margin: EdgeInsets.only(top: 235.0),
114 | child: Text(
115 | "Anywhere",
116 | style: TextStyle(
117 | fontSize: 30.0,
118 | fontWeight: FontWeight.bold,
119 | color: Colors.white),
120 | ),
121 | )),
122 | ),
123 | // App title animation
124 | Positioned(
125 | height: MediaQuery.of(context).size.height * 0.75,
126 | width: MediaQuery.of(context).size.width * 1,
127 | child: FadeAnimation(
128 | 2.0,
129 | Container(
130 |
131 | child: Center(
132 | child: Text(
133 | "Bus App",
134 | style: TextStyle(
135 | color: Colors.white,
136 | fontSize: 40,
137 | fontWeight: FontWeight.bold),
138 | ),
139 | ),
140 | )),
141 | )
142 | ],
143 | ),
144 | // End of top section
145 | ),
146 | Container(
147 | width: MediaQuery.of(context).size.width * 1,
148 | height: MediaQuery.of(context).size.height * 0.55,
149 |
150 | child: Column(
151 | // Column for User name and password
152 | children: [
153 | Padding(padding: EdgeInsets.only(
154 | top: MediaQuery.of(context).size.height * 0.06),
155 | ),
156 | FadeAnimation(
157 | 2.4,
158 | Container(
159 | width: MediaQuery.of(context).size.width * 0.9,
160 | height: MediaQuery.of(context).size.height * 0.175,
161 | padding: EdgeInsets.all(5),
162 | decoration: BoxDecoration(
163 | color: Color(0xffe46b10),
164 | borderRadius: BorderRadius.circular(10),
165 | boxShadow: [
166 | BoxShadow(
167 | color: Colors.indigoAccent,
168 | blurRadius: 20.0,
169 | offset: Offset(0, 10))
170 | ]),
171 | child: Column(
172 | children: [
173 | Container(
174 | padding: EdgeInsets.all(8.0),
175 | decoration: BoxDecoration(
176 | border: Border(
177 | bottom:
178 | BorderSide(color: Colors.white))),
179 | child: TextField(
180 | style: new TextStyle(
181 | color: Colors.white,
182 | ),
183 | decoration: InputDecoration(
184 | border: InputBorder.none,
185 | hintText: "Email Id",
186 | hintStyle: TextStyle(color: Colors.white),
187 | ),
188 | keyboardType: TextInputType.emailAddress,
189 | controller: nameController,
190 | ),
191 | ),
192 | Container(
193 | padding: EdgeInsets.all(8.0),
194 | child: TextField(
195 | style: new TextStyle(
196 | color: Colors.white,
197 | ),
198 | decoration: InputDecoration(
199 | border: InputBorder.none,
200 | hintText: "Password",
201 | hintStyle: TextStyle(color: Colors.white),
202 | ),
203 | obscureText: true,
204 | controller: passwordController,
205 | ),
206 | )
207 | ],
208 | ),
209 | ),),
210 | SizedBox(
211 | height: 40,
212 | ),
213 | FadeAnimation(
214 | 2.8,
215 | // container for log in button
216 | GestureDetector(
217 | onTap: () async {
218 | String mail = nameController.value.text;
219 | String password = passwordController.value.text;
220 |
221 | if (mail.isNotEmpty &&
222 | password.isNotEmpty &&
223 | password.length >= 6) {
224 |
225 | setState(() {
226 | loading = true;
227 | });
228 | dynamic result =
229 | await _auth.signInWithMail(mail, password);
230 |
231 | if (result == null) {
232 |
233 | setState(() {
234 | loading = false;
235 | });
236 |
237 | _loggedIn(false);
238 | Alert(
239 | context: context,
240 | type: AlertType.error,
241 | title: "Error !!",
242 | desc:
243 | "User not Found. Check credentials !",
244 | buttons: [
245 | DialogButton(
246 | child: Text(
247 | "Okay",
248 | style: TextStyle(
249 | color: Colors.white, fontSize: 20),
250 | ),
251 | onPressed: () => Navigator.pop(context),
252 | width: 120,
253 | )
254 | ],
255 | ).show();
256 | } else {
257 | _loggedIn(true);
258 | Navigator.push(
259 | context,
260 | MaterialPageRoute(builder: (context) => BusFilter())
261 | );
262 |
263 | }
264 | } else {
265 | print("Invalid");
266 | }
267 |
268 | nameController.clear();
269 | passwordController.clear();
270 | },
271 | child: Container(
272 | width: MediaQuery.of(context).size.width * 0.9,
273 |
274 | height: MediaQuery.of(context).size.height * 0.06,
275 | decoration: BoxDecoration(
276 | borderRadius: BorderRadius.circular(10),
277 | boxShadow: [
278 | BoxShadow(
279 | color: Colors.indigoAccent,
280 | blurRadius: 20.0,
281 | offset: Offset(0, 10)),
282 | ],
283 | gradient: LinearGradient(colors: [
284 | Color(0xffe46b10),
285 | Color(0xffe46b10)
286 | ])),
287 | child: Center(
288 | child: Text(
289 | "Login",
290 | style: TextStyle(
291 | color: Colors.grey[300],
292 | fontWeight: FontWeight.bold,
293 | fontSize: 25.0),
294 | ),
295 | ),
296 | ),
297 | ),
298 | ),
299 | SizedBox(
300 | height: 30,
301 | ),
302 | // Forget password text
303 | FadeAnimation(
304 | 3.0,
305 | Text(
306 | "Forgot Password?",
307 | style: TextStyle(
308 | color: Colors.white,
309 | fontSize: 20.0,
310 | fontWeight: FontWeight.bold),
311 | )),
312 | SizedBox(
313 | height: 20,
314 | ),
315 | // animated create id button
316 | FadeAnimation(
317 | 3.2,
318 | RaisedButton(
319 | onPressed: () {
320 | Navigator.push(
321 | context,
322 | MaterialPageRoute(
323 | builder: (context) => CreateAccount()),
324 | );
325 | },
326 | color: Colors.white,
327 | child: Text(
328 | "Create Account",
329 | style: TextStyle(
330 | color: Colors.black,
331 | fontWeight: FontWeight.bold,
332 | fontSize: 20.0,
333 | ),
334 | ),
335 | ),
336 | ),
337 | ],
338 | ),
339 | ),
340 | ],
341 | ),
342 | ),
343 | );
344 | }
345 |
346 | }
347 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXCopyFilesBuildPhase section */
23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
24 | isa = PBXCopyFilesBuildPhase;
25 | buildActionMask = 2147483647;
26 | dstPath = "";
27 | dstSubfolderSpec = 10;
28 | files = (
29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
31 | );
32 | name = "Embed Frameworks";
33 | runOnlyForDeploymentPostprocessing = 0;
34 | };
35 | /* End PBXCopyFilesBuildPhase section */
36 |
37 | /* Begin PBXFileReference section */
38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | /* End PBXFileReference section */
54 |
55 | /* Begin PBXFrameworksBuildPhase section */
56 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
57 | isa = PBXFrameworksBuildPhase;
58 | buildActionMask = 2147483647;
59 | files = (
60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
62 | );
63 | runOnlyForDeploymentPostprocessing = 0;
64 | };
65 | /* End PBXFrameworksBuildPhase section */
66 |
67 | /* Begin PBXGroup section */
68 | 9740EEB11CF90186004384FC /* Flutter */ = {
69 | isa = PBXGroup;
70 | children = (
71 | 3B80C3931E831B6300D905FE /* App.framework */,
72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
77 | );
78 | name = Flutter;
79 | sourceTree = "";
80 | };
81 | 97C146E51CF9000F007C117D = {
82 | isa = PBXGroup;
83 | children = (
84 | 9740EEB11CF90186004384FC /* Flutter */,
85 | 97C146F01CF9000F007C117D /* Runner */,
86 | 97C146EF1CF9000F007C117D /* Products */,
87 | );
88 | sourceTree = "";
89 | };
90 | 97C146EF1CF9000F007C117D /* Products */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 97C146EE1CF9000F007C117D /* Runner.app */,
94 | );
95 | name = Products;
96 | sourceTree = "";
97 | };
98 | 97C146F01CF9000F007C117D /* Runner */ = {
99 | isa = PBXGroup;
100 | children = (
101 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
104 | 97C147021CF9000F007C117D /* Info.plist */,
105 | 97C146F11CF9000F007C117D /* Supporting Files */,
106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
110 | );
111 | path = Runner;
112 | sourceTree = "";
113 | };
114 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
115 | isa = PBXGroup;
116 | children = (
117 | );
118 | name = "Supporting Files";
119 | sourceTree = "";
120 | };
121 | /* End PBXGroup section */
122 |
123 | /* Begin PBXNativeTarget section */
124 | 97C146ED1CF9000F007C117D /* Runner */ = {
125 | isa = PBXNativeTarget;
126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
127 | buildPhases = (
128 | 9740EEB61CF901F6004384FC /* Run Script */,
129 | 97C146EA1CF9000F007C117D /* Sources */,
130 | 97C146EB1CF9000F007C117D /* Frameworks */,
131 | 97C146EC1CF9000F007C117D /* Resources */,
132 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
134 | );
135 | buildRules = (
136 | );
137 | dependencies = (
138 | );
139 | name = Runner;
140 | productName = Runner;
141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
142 | productType = "com.apple.product-type.application";
143 | };
144 | /* End PBXNativeTarget section */
145 |
146 | /* Begin PBXProject section */
147 | 97C146E61CF9000F007C117D /* Project object */ = {
148 | isa = PBXProject;
149 | attributes = {
150 | LastUpgradeCheck = 1020;
151 | ORGANIZATIONNAME = "The Chromium Authors";
152 | TargetAttributes = {
153 | 97C146ED1CF9000F007C117D = {
154 | CreatedOnToolsVersion = 7.3.1;
155 | LastSwiftMigration = 1100;
156 | };
157 | };
158 | };
159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
160 | compatibilityVersion = "Xcode 3.2";
161 | developmentRegion = en;
162 | hasScannedForEncodings = 0;
163 | knownRegions = (
164 | en,
165 | Base,
166 | );
167 | mainGroup = 97C146E51CF9000F007C117D;
168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
169 | projectDirPath = "";
170 | projectRoot = "";
171 | targets = (
172 | 97C146ED1CF9000F007C117D /* Runner */,
173 | );
174 | };
175 | /* End PBXProject section */
176 |
177 | /* Begin PBXResourcesBuildPhase section */
178 | 97C146EC1CF9000F007C117D /* Resources */ = {
179 | isa = PBXResourcesBuildPhase;
180 | buildActionMask = 2147483647;
181 | files = (
182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
186 | );
187 | runOnlyForDeploymentPostprocessing = 0;
188 | };
189 | /* End PBXResourcesBuildPhase section */
190 |
191 | /* Begin PBXShellScriptBuildPhase section */
192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
193 | isa = PBXShellScriptBuildPhase;
194 | buildActionMask = 2147483647;
195 | files = (
196 | );
197 | inputPaths = (
198 | );
199 | name = "Thin Binary";
200 | outputPaths = (
201 | );
202 | runOnlyForDeploymentPostprocessing = 0;
203 | shellPath = /bin/sh;
204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
205 | };
206 | 9740EEB61CF901F6004384FC /* Run Script */ = {
207 | isa = PBXShellScriptBuildPhase;
208 | buildActionMask = 2147483647;
209 | files = (
210 | );
211 | inputPaths = (
212 | );
213 | name = "Run Script";
214 | outputPaths = (
215 | );
216 | runOnlyForDeploymentPostprocessing = 0;
217 | shellPath = /bin/sh;
218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
219 | };
220 | /* End PBXShellScriptBuildPhase section */
221 |
222 | /* Begin PBXSourcesBuildPhase section */
223 | 97C146EA1CF9000F007C117D /* Sources */ = {
224 | isa = PBXSourcesBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
229 | );
230 | runOnlyForDeploymentPostprocessing = 0;
231 | };
232 | /* End PBXSourcesBuildPhase section */
233 |
234 | /* Begin PBXVariantGroup section */
235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
236 | isa = PBXVariantGroup;
237 | children = (
238 | 97C146FB1CF9000F007C117D /* Base */,
239 | );
240 | name = Main.storyboard;
241 | sourceTree = "";
242 | };
243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
244 | isa = PBXVariantGroup;
245 | children = (
246 | 97C147001CF9000F007C117D /* Base */,
247 | );
248 | name = LaunchScreen.storyboard;
249 | sourceTree = "";
250 | };
251 | /* End PBXVariantGroup section */
252 |
253 | /* Begin XCBuildConfiguration section */
254 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
255 | isa = XCBuildConfiguration;
256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
257 | buildSettings = {
258 | ALWAYS_SEARCH_USER_PATHS = NO;
259 | CLANG_ANALYZER_NONNULL = YES;
260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
261 | CLANG_CXX_LIBRARY = "libc++";
262 | CLANG_ENABLE_MODULES = YES;
263 | CLANG_ENABLE_OBJC_ARC = YES;
264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
265 | CLANG_WARN_BOOL_CONVERSION = YES;
266 | CLANG_WARN_COMMA = YES;
267 | CLANG_WARN_CONSTANT_CONVERSION = YES;
268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
270 | CLANG_WARN_EMPTY_BODY = YES;
271 | CLANG_WARN_ENUM_CONVERSION = YES;
272 | CLANG_WARN_INFINITE_RECURSION = YES;
273 | CLANG_WARN_INT_CONVERSION = YES;
274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
279 | CLANG_WARN_STRICT_PROTOTYPES = YES;
280 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
281 | CLANG_WARN_UNREACHABLE_CODE = YES;
282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
284 | COPY_PHASE_STRIP = NO;
285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
286 | ENABLE_NS_ASSERTIONS = NO;
287 | ENABLE_STRICT_OBJC_MSGSEND = YES;
288 | GCC_C_LANGUAGE_STANDARD = gnu99;
289 | GCC_NO_COMMON_BLOCKS = YES;
290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
292 | GCC_WARN_UNDECLARED_SELECTOR = YES;
293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
294 | GCC_WARN_UNUSED_FUNCTION = YES;
295 | GCC_WARN_UNUSED_VARIABLE = YES;
296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
297 | MTL_ENABLE_DEBUG_INFO = NO;
298 | SDKROOT = iphoneos;
299 | SUPPORTED_PLATFORMS = iphoneos;
300 | TARGETED_DEVICE_FAMILY = "1,2";
301 | VALIDATE_PRODUCT = YES;
302 | };
303 | name = Profile;
304 | };
305 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
306 | isa = XCBuildConfiguration;
307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
308 | buildSettings = {
309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
310 | CLANG_ENABLE_MODULES = YES;
311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
312 | ENABLE_BITCODE = NO;
313 | FRAMEWORK_SEARCH_PATHS = (
314 | "$(inherited)",
315 | "$(PROJECT_DIR)/Flutter",
316 | );
317 | INFOPLIST_FILE = Runner/Info.plist;
318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
319 | LIBRARY_SEARCH_PATHS = (
320 | "$(inherited)",
321 | "$(PROJECT_DIR)/Flutter",
322 | );
323 | PRODUCT_BUNDLE_IDENTIFIER = com.example.busLocationTracker;
324 | PRODUCT_NAME = "$(TARGET_NAME)";
325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
326 | SWIFT_VERSION = 5.0;
327 | VERSIONING_SYSTEM = "apple-generic";
328 | };
329 | name = Profile;
330 | };
331 | 97C147031CF9000F007C117D /* Debug */ = {
332 | isa = XCBuildConfiguration;
333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
334 | buildSettings = {
335 | ALWAYS_SEARCH_USER_PATHS = NO;
336 | CLANG_ANALYZER_NONNULL = YES;
337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
338 | CLANG_CXX_LIBRARY = "libc++";
339 | CLANG_ENABLE_MODULES = YES;
340 | CLANG_ENABLE_OBJC_ARC = YES;
341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
342 | CLANG_WARN_BOOL_CONVERSION = YES;
343 | CLANG_WARN_COMMA = YES;
344 | CLANG_WARN_CONSTANT_CONVERSION = YES;
345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
347 | CLANG_WARN_EMPTY_BODY = YES;
348 | CLANG_WARN_ENUM_CONVERSION = YES;
349 | CLANG_WARN_INFINITE_RECURSION = YES;
350 | CLANG_WARN_INT_CONVERSION = YES;
351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
356 | CLANG_WARN_STRICT_PROTOTYPES = YES;
357 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
358 | CLANG_WARN_UNREACHABLE_CODE = YES;
359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
361 | COPY_PHASE_STRIP = NO;
362 | DEBUG_INFORMATION_FORMAT = dwarf;
363 | ENABLE_STRICT_OBJC_MSGSEND = YES;
364 | ENABLE_TESTABILITY = YES;
365 | GCC_C_LANGUAGE_STANDARD = gnu99;
366 | GCC_DYNAMIC_NO_PIC = NO;
367 | GCC_NO_COMMON_BLOCKS = YES;
368 | GCC_OPTIMIZATION_LEVEL = 0;
369 | GCC_PREPROCESSOR_DEFINITIONS = (
370 | "DEBUG=1",
371 | "$(inherited)",
372 | );
373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
375 | GCC_WARN_UNDECLARED_SELECTOR = YES;
376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
377 | GCC_WARN_UNUSED_FUNCTION = YES;
378 | GCC_WARN_UNUSED_VARIABLE = YES;
379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
380 | MTL_ENABLE_DEBUG_INFO = YES;
381 | ONLY_ACTIVE_ARCH = YES;
382 | SDKROOT = iphoneos;
383 | TARGETED_DEVICE_FAMILY = "1,2";
384 | };
385 | name = Debug;
386 | };
387 | 97C147041CF9000F007C117D /* Release */ = {
388 | isa = XCBuildConfiguration;
389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
390 | buildSettings = {
391 | ALWAYS_SEARCH_USER_PATHS = NO;
392 | CLANG_ANALYZER_NONNULL = YES;
393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
394 | CLANG_CXX_LIBRARY = "libc++";
395 | CLANG_ENABLE_MODULES = YES;
396 | CLANG_ENABLE_OBJC_ARC = YES;
397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
398 | CLANG_WARN_BOOL_CONVERSION = YES;
399 | CLANG_WARN_COMMA = YES;
400 | CLANG_WARN_CONSTANT_CONVERSION = YES;
401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
403 | CLANG_WARN_EMPTY_BODY = YES;
404 | CLANG_WARN_ENUM_CONVERSION = YES;
405 | CLANG_WARN_INFINITE_RECURSION = YES;
406 | CLANG_WARN_INT_CONVERSION = YES;
407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
412 | CLANG_WARN_STRICT_PROTOTYPES = YES;
413 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
414 | CLANG_WARN_UNREACHABLE_CODE = YES;
415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
417 | COPY_PHASE_STRIP = NO;
418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
419 | ENABLE_NS_ASSERTIONS = NO;
420 | ENABLE_STRICT_OBJC_MSGSEND = YES;
421 | GCC_C_LANGUAGE_STANDARD = gnu99;
422 | GCC_NO_COMMON_BLOCKS = YES;
423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
425 | GCC_WARN_UNDECLARED_SELECTOR = YES;
426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
427 | GCC_WARN_UNUSED_FUNCTION = YES;
428 | GCC_WARN_UNUSED_VARIABLE = YES;
429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
430 | MTL_ENABLE_DEBUG_INFO = NO;
431 | SDKROOT = iphoneos;
432 | SUPPORTED_PLATFORMS = iphoneos;
433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | VALIDATE_PRODUCT = YES;
436 | };
437 | name = Release;
438 | };
439 | 97C147061CF9000F007C117D /* Debug */ = {
440 | isa = XCBuildConfiguration;
441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
442 | buildSettings = {
443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444 | CLANG_ENABLE_MODULES = YES;
445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
446 | ENABLE_BITCODE = NO;
447 | FRAMEWORK_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | INFOPLIST_FILE = Runner/Info.plist;
452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
453 | LIBRARY_SEARCH_PATHS = (
454 | "$(inherited)",
455 | "$(PROJECT_DIR)/Flutter",
456 | );
457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.busLocationTracker;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461 | SWIFT_VERSION = 5.0;
462 | VERSIONING_SYSTEM = "apple-generic";
463 | };
464 | name = Debug;
465 | };
466 | 97C147071CF9000F007C117D /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
469 | buildSettings = {
470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
471 | CLANG_ENABLE_MODULES = YES;
472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
473 | ENABLE_BITCODE = NO;
474 | FRAMEWORK_SEARCH_PATHS = (
475 | "$(inherited)",
476 | "$(PROJECT_DIR)/Flutter",
477 | );
478 | INFOPLIST_FILE = Runner/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
480 | LIBRARY_SEARCH_PATHS = (
481 | "$(inherited)",
482 | "$(PROJECT_DIR)/Flutter",
483 | );
484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.busLocationTracker;
485 | PRODUCT_NAME = "$(TARGET_NAME)";
486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
487 | SWIFT_VERSION = 5.0;
488 | VERSIONING_SYSTEM = "apple-generic";
489 | };
490 | name = Release;
491 | };
492 | /* End XCBuildConfiguration section */
493 |
494 | /* Begin XCConfigurationList section */
495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
496 | isa = XCConfigurationList;
497 | buildConfigurations = (
498 | 97C147031CF9000F007C117D /* Debug */,
499 | 97C147041CF9000F007C117D /* Release */,
500 | 249021D3217E4FDB00AE95B9 /* Profile */,
501 | );
502 | defaultConfigurationIsVisible = 0;
503 | defaultConfigurationName = Release;
504 | };
505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
506 | isa = XCConfigurationList;
507 | buildConfigurations = (
508 | 97C147061CF9000F007C117D /* Debug */,
509 | 97C147071CF9000F007C117D /* Release */,
510 | 249021D4217E4FDB00AE95B9 /* Profile */,
511 | );
512 | defaultConfigurationIsVisible = 0;
513 | defaultConfigurationName = Release;
514 | };
515 | /* End XCConfigurationList section */
516 | };
517 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
518 | }
519 |
--------------------------------------------------------------------------------