Excellent Programming Tricks

Flutter frequently used terminal commands | Add Firebase to Flutter app

  1. ...
    1. flutter clean
    2. flutter pub cache repair
    3. flutter pub get
    4. flutter run
    5. flutter pub outdated 
    6. flutter upgrade
    7. flutter build windows
  2. Visual Studio Code - Extensions
    1. Dart - dartcode.org
    2. Flutter - dartcode.org
    3. Code Spell Checker - streetsidesoftware.com
    4. Error Lens - Alexander
    5. Live Server - Ritwick Dey
    6. Flutter Intl - Localizely
    7. Flutter Widget Snippets - Alexis Villegas Torres
    8. Live Server - Ritwick Dey
  3. Check valid flutter installation 
    1. flutter doctor
  4. Create project
    1. flutter create my_app
  5. Boc
    1. flutter pub add bloc
    2. flutter pub add flutter_bloc
    3. flutter pub add bloc_test
  6. Firebase | Install
    1. Add Firebase to Flutter app
      1. https://firebase.google.com/docs/flutter/setup?platform=android
      2. check flutter doctor
      3. Download node.js and please install
        1. https://nodejs.org/en
        2. Cmd npm install -g firebase-tools
          1. npm -v
      4. cmd firebase login or firebase login:ci
        1. Allow Firebase to collect CLI and Emulator Suite usage and error reporting information? (Y/n)
        2. Visit this URL on this device to log in: ... and allow
        3. Firebase CLI Login Successful
        4. cmd -> Success! Logged in as i...@gmail.com
    2. Download and install CLI  Rum 
      1. https://firebase.google.com/docs/cli#install-cli-windows
        1. firebase-tools-instant-win.exe
        2. CMD ..... your CLI is set up!
      2. Browse the link and Success! Logged in as ...@....com or firebase login
      3. Run cmd dart pub global activate flutterfire_cli 
        1. Error
          1. But the cmd window is shutdown 
          2. dart --version also not working or shutdown
          3. Run powershell and rum dart pub global activate flutterfire_cli 
            1. Error: Unable to find git in your PATH.
          4. Install git
        2. Activated flutterfire_cli ..... or 1.1.0.
          1. Set system's "Path" environment variable C:\Users\...\AppData\Local\Pub\Cache\bin
    3. Create a new project, open a terminal, and add the Firebase Core package.
      1. flutter pub add firebase_core
        1. Communicating with firebase services.
      2. flutterfire configure
        1. A configuration wizard for integrating Firebase with Flutter
    4. Firebase cloud
  7. Firebase recommend package
    1. firebase_core
      1. flutter pub add firebase_core
    2. firebase_auth
      1. flutter pub add firebase_auth
    3. flutter pub add cloud_firestore
    4. flutter pub add firebase_analytics
  8. Pub get
    1. flutter pub add collection
  9. Rename 
    1. Ctrl/Cmd + F2
  10. Riverpod
    1. flutter pub add hooks_riverpod
    2. For vs Code
      1. Flutter Riverpod Snippets - Robert Brunhage
  11. Run
    1. flutter run
  12. Testing
    1. flutter pub add test --dev
    2. Now it works on dev_dependencies
  13. Update | Showing outdated packages and update
    1. flutter pub outdated 
    2. flutter upgrade


No comments:

Post a Comment


Authentic аnd Excellent

Website

HTML Template

Wordpress Theme

Database applications

OR

Application services?

Excellent Programming Tricks (EPT) || Iftekhar-IT || We develops the Web applications and the WordPress templates. || Excellent Programming Tricks (EPT)

© 2020 Blogger Theme by Iftekhar IT || Excellent Programming Tricks

Execllent Programming Tricks. Powered by Blogger.