No description, website, or topics provided.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android firebase integration, Dec 6, 2018
font fonts, Dec 10, 2018
icons icons Dec 10, 2018
ios Initial commit Dec 5, 2018
lib empty layout text Dec 10, 2018
preview refactored previews Dec 10, 2018
.gitignore gitignore update Dec 11, 2018
.metadata Initial commit Dec 5, 2018
README.md Update README.md Dec 10, 2018
pubspec.yaml fonts, Dec 10, 2018

README.md

Cricket Team

Say Thanks!

A Flutter application that demonstrate simple CRUD operations with Firebase cloud database.

Preview

Home Empty Swipe
Screenshot Screenshot Screenshot
Add Player Update Player
Screenshot Screenshot

Add Firebase to your app

  1. Create a Firebase project. Check out the Firebase documentation for setting up the firebase in your flutter application.
  2. Create a new Firebase console project
  3. Add Cloud Firestore to the project in the pubspec.yaml
  4. Drop the created google-services.json in android/app

Gradles

Changes to the android/build.gradle:

buildscript {
        repositories {
            ...
        }

        dependencies {
            ...
            classpath 'com.google.gms:google-services:3.2.1' // Google Services plugin
        }
    }

And then we have the android/app/build.gradle:

//bottom of file
apply plugin: 'com.google.gms.google-services'

iOS CocoaPods

Google services use CocoaPods to install and manage dependencies. Open a terminal window and navigate to the location of the Xcode project for your app.

  1. Create a Podfile if you don't have one:

pod init

  1. Open your Podfile and add:

pod 'Firebase/Core'

  1. Save the file and run:

pod install

  1. Add initialization code
import UIKit
import Firebase // import the firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

  var window: UIWindow?

  func application(_ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)
    -> Bool {
    FirebaseApp.configure() //configure the firebase
    return true
  }
}

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Contribute

  1. Fork the the project
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make required changes and commit (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Questions?🤔

Hit me on