Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

cricket team

a flutter application that demonstrate simple crud operations with firebase cloud database.

cricket team

preview

home empty swipe
list empty swipe
add player update player
cricket team update

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.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.