Giter Site home page Giter Site logo

nsdhillon1 / my_circle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scarnett/flutter_tracker

0.0 0.0 0.0 3.96 MB

A simple family tracker based on the popular Life360 app. This was written as an exercise in recreating a popular app using the Flutter development kit.

License: MIT License

JavaScript 0.04% Objective-C 0.11% Kotlin 0.08% Dart 89.54% TypeScript 10.19% Dockerfile 0.04%

my_circle's Introduction

Flutter Tracker

A Family Tracker for Flutter. This project is only an exercise in re-creating a propular family tracker using Flutter and should not be used for production purposes.

Screen1

Firebase

Firebase and firestore are required to run this so make sure to setup a new project.


Style Guide

https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo


VSCode

You will need to install the Dart and Flutter plugins.

Dart
Flutter

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Flutter_Tracker_DEV",
      "type": "dart",
      "request": "launch",
      "program": "lib/main_dev.dart",
      "args": [
        "--flavor",
        "development"
      ]
    },
    {
      "name": "Flutter_Tracker_PROD",
      "type": "dart",
      "request": "launch",
      "program": "lib/main_prod.dart",
      "args": [
        "--flavor",
        "production"
      ]
    }
  ]
}

Settings

You will need to create these files:

android/key.properties

storePassword=<store password>
keyPassword=<key password>
keyAlias=key
storeFile=<path/to/key/file.jks>

android/local.properties

app.id=io.flutter_tracker.app
flutter.buildMode=release
flutter.versionName=1.0.0
flutter.versionCode=1
flutter.sdk=<path/to/flutter/sdk>
sdk.dir=<path/to/android/sdk>
transistorsoft.license=<transistorsoft license key>

Google Services

You will need to add your firebase services json config into the following folders. You can find this file in your firebase project settings.

android/app/src/development
android/app/src/production

Android SDK

You will need to download, unzip the android sdk and update the ANDROID_HOME env var with the path.

https://developer.android.com/studio#downloads
Scroll down to the Command line tools only section.

NOTE: You DO NOT need to download Android Studio.

Java

Java 8 is requried. It seems that the andorid sdk does not support Java 11 yet.


Environment Variables

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
export ANDROID_HOME=$HOME/android/sdk
export PATH=$PATH:$JAVA_HOME:$JAVA_HOME/bin:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$HOME/dev/flutter/bin:$HOME/dev/flutter/bin/cache/dart-sdk/bin

Build App Bundle

flutter build appbundle --flavor development -t lib/main_dev.dart
flutter build appbundle --flavor production -t lib/main_prod.dart
flutter build appbundle --flavor production --release -t lib/main_prod.dart

Build APK

flutter build --flavor development -t lib/main_dev.dart
flutter build --flavor production -t lib/main_prod.dart
flutter build --flavor production --release -t lib/main_prod.dart

Run and debug

Command line

flutter run --flavor development -t lib/main_dev.dart
flutter run --flavor production -t lib/main_prod.dart

VSCode

Plug an android device into your computer and enable usb debugging. Next, open the project in VSCode. If everything is setup correctly then you'll see the Flutter version and your device shown at the bottom.

Dart

Now just press F5 and it will build and launch the app on your device. This menu will also appear in the window:

Dart


Docker

docker-compose up flutter_tracker

Screenshots

Screen1Screen1Screen1Screen1Screen1Screen1Screen1Screen1Screen2Screen3Screen4Screen6Screen7Screen8Screen10Screen11

my_circle's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.