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.
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
Unlike FlutterFire for mobile and web platforms, the initialization in Desktop is done from Dart, which means there are no additional config files required.
To initialize the default app, provide only options without a name.
await Firebase.initializeApp(
options: const FirebaseOptions(
apiKey: '...',
appId: '...',
messagingSenderId: '...',
projectId: '...',
)
);
await Firebase.initializeApp(
name: 'SecondaryApp',
options: const FirebaseOptions(
apiKey: '...',
appId: '...',
messagingSenderId: '...',
projectId: '...',
)
);
This is a community project, contributions to help it progress faster are welcome:
- Before starting, please read the contribution guide of FlutterFire.
- Refer to the projects board to see the current progress & planned future work.