使用 Flutter 实现 Firebase 登录

凭据 (Credentials)

index.html 文件中插入您的 Firebase 凭据

const firebaseConfig = {
  apiKey: "API-KEY",
  authDomain: "AUTH-DOMAIN",
  projectId: "PROJECT-ID",
  storageBucket: "STORAGE-BUCKET",
  messagingSenderId: "MESSAGINGSENDER-ID",
  appId: "APP-ID"
};

安装

应用程序需要 Flutter 才能运行。

安装依赖项并启动应用程序。

flutter pub add firebase_core
flutter pub add firebase_auth
flutter pub add provider
flutter run -d chrome

GitHub

查看 Github