Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FirebaseExtended/flutterfire_desktop
An early-stage, experimental pure-Dart implementation of Firebase SDKs.
https://github.com/FirebaseExtended/flutterfire_desktop
dart firebase flutter hacktoberfest linux ubuntu windows
Last synced: 3 months ago
JSON representation
An early-stage, experimental pure-Dart implementation of Firebase SDKs.
- Host: GitHub
- URL: https://github.com/FirebaseExtended/flutterfire_desktop
- Owner: FirebaseExtended
- License: other
- Created: 2021-07-27T08:21:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T23:48:05.000Z (8 months ago)
- Last Synced: 2024-08-01T12:25:07.495Z (6 months ago)
- Topics: dart, firebase, flutter, hacktoberfest, linux, ubuntu, windows
- Language: Dart
- Homepage:
- Size: 1010 KB
- Stars: 405
- Watchers: 39
- Forks: 57
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Firebase's Dart SDK
The Dart SDK allows Flutter and Dart apps to consume Firebase services.
It is an __early-stage, experimental__ pure-Dart implementation of Firebase SDKs, without wrapping the existing Android, iOS, web, or C++ SDKs. The initial work is focused on supporting Firebase for Linux and Windows platforms.
## Usage
To use this plugin, add the following dependencies to your app's `pubspec.yaml` file, along with the main plugin:
```yaml
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 the Firebase Flutter SDK, the Firebase initialization is done from Dart code, which means no additional config files are required.
### DEFAULT app
To initialize the default app, provide only options without a name.
```dart
await Firebase.initializeApp(
options: const FirebaseOptions(
apiKey: '...',
appId: '...',
messagingSenderId: '...',
projectId: '...',
)
);
```
### Secondary app
```dart
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](https://github.com/FirebaseExtended/flutterfire/blob/master/CONTRIBUTING.md).
2. Refer to the [projects board](https://github.com/invertase/flutterfire_desktop/projects) to see the current progress & planned future work.