invertase / flutterfire_desktop

A pure Dart implementation of Firebase with initial support aimed at FlutterFire for Linux & Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlutterFire Desktop

A work in progress pure Dart implementation of Firebase with initial support aimed at FlutterFire for Linux & Windows.

A FlutterFire dev preview release will be available soon making these packages available for Linux and Windows.

Learn more about the current progress of this project in our blog.

Usage

To use this plugin as FlutterFire's implementation for Desktop, add it to your app's pubspec.yaml along with the main plugin:

dependencies:
  firebase_auth: ^3.1.5
  firebase_auth_desktop: ^0.1.1-dev.0
  firebase_core: ^1.9.0
  firebase_core_desktop: ^0.1.1-dev.0

Firebase App Initialization

Unlike FlutterFire for mobile and web platforms, the initialization in Desktop is done from Dart, which means there are no additional config files required.

DEFAULT app

To initialize the default app, provide only options without a name.

await Firebase.initializeApp(
  options: const FirebaseOptions(
    apiKey: '...',
    appId: '...',
    messagingSenderId: '...',
    projectId: '...',
  )
);

Secondary app

await Firebase.initializeApp(
  name: 'SecondaryApp',
  options: const FirebaseOptions(
    apiKey: '...',
    appId: '...',
    messagingSenderId: '...',
    projectId: '...',
  )
);

Contributing

This is a community project, contributions to help it progress faster are welcome:

  1. Before starting, please read the contribution guide of FlutterFire.
  2. Refer to the projects board to see the current progress & planned future work.

About

A pure Dart implementation of Firebase with initial support aimed at FlutterFire for Linux & Windows.

License:Other


Languages

Language:Dart 70.9%Language:C++ 16.5%Language:CMake 10.3%Language:C 1.3%Language:Ruby 0.5%Language:Swift 0.4%