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. CMake Tools - microsoft.com
    4. Code Spell Checker - streetsidesoftware.com
    5. Error Lens - Alexander
    6. Live Server - Ritwick Dey
    7. Flutter Intl - Localizely
    8. Flutter Widget Snippets - Alexis Villegas Torres
    9. :emojisense: - Matt Bierner
  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 [Microsoft Windows [Version 10.0.26100.4351] (c) Microsoft Corporation. All rights reserved.]
          1. npm -v
      4. firebase login
      5. firebase login:list
      6.  firebase logout
      7. cmd firebase login or firebase login:ci [Must do this]
        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 [standalone binary: Download the Firebase CLI binary for 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. Now on VS code terminal 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
      3. Differentiate Between Name and ID:
        1. Project name can be duplicated across accounts.
        2. Project ID must be globally unique.
        3. Want to create project and faild why? because your project name already exist in google but you think your sysyem may hjave some eroor
    4. Firebase console https://console.firebase.google.com/
  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_storage
    5. flutter pub add firebase_analytics
  8. Package Name
    1. google-sevice.json
      1. "client": 
        1. "package_name": "com.example.abd_clone"
  9. Pub get
    1. flutter pub add collection
    2. flutter pub add uuid
    3. flutter pub add font_awesome_flutter
    4. flutter pub add flutter_facebook_auth
    5. flutter pub add google_sign_in
    6. flutter pub add image_picker
    7. flutter pub add image
    8. flutter pub add flutter_hooks
    9. flutter pub add collection
    10. flutter pub add intl
    11. flutter pub add video_thumbnail
    12. flutter pub add video_player
    13. flutter pub add lottie
    14. flutter pub add share_plus
    15. flutter pub add url_launcher
  10. Rename 
    1. Ctrl/Cmd + F2
  11. Riverpod
    1. flutter pub add hooks_riverpod
    2. flutter pub add riverpod_annotation
    3. For vs Code
      1. Flutter Riverpod Snippets - Robert Brunhage
  12. Run
    1. flutter run
    2. SHA1
      1. keytool -list -v -keystore "C:\Users\iftek\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
  13. Testing
    1. flutter pub add test --dev
    2. Now it works on dev_dependencies
  14. 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.