Skip to content

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

License

Notifications You must be signed in to change notification settings

rebaz94/flutterfire_desktop

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 70.9%
  • C++ 16.5%
  • CMake 10.4%
  • C 1.3%
  • Other 0.9%