patapata_firebase_core 1.0.2 copy "patapata_firebase_core: ^1.0.2" to clipboard
patapata_firebase_core: ^1.0.2 copied to clipboard

This package is a plugin for Patapata that adds support for Firebase to your Patapata app.

Patapata - Firebase Core

Add support for Firebase to your Patapata app.


About #

This package is a plugin for Patapata that adds support for Firebase to your Patapata app.

This plugin itself just initializes Firebase. It does not do anything else itself. You will need to add other plugins to your app to use Firebase features.

Getting started #

  1. Follow the instructions for your platform to set up Firebase at https://firebase.google.com/docs/flutter/setup, up until just after executing flutterfire configure.

  2. Add the dependency to your pubspec.yaml file

flutter pub add patapata_firebase_core
  1. Import the package and the settings from your firebase_options.dart file
import 'package:patapata_firebase_core/patapata_firebase_core.dart';
import 'firebase_options.dart';
  1. Activate the plugin
/// This Environment takes Firebase configuration from environment variables.
/// Pass environment variables to your app using the `--dart-define` flag.
class Environment with FirebaseCorePluginEnvironment {
  const Environment();

  /// The options of Firebase to pass to [Firebase.initializeApp].
  /// You can keep this null if you use the old google_services.json method.
  /// If you want to support a web project as well, the [FirebaseCorePluginEnvironment.firebaseWebOptions]
  /// getter is also available.
  @override
  Map<TargetPlatform, FirebaseOptions>? get firebaseOptions => {
        TargetPlatform.android: DefaultFirebaseOptions.android,
        /// etc...
      };
}

void main() {
  App(
    environment: const Environment(),
    plugins: [
      FirebaseCorePlugin(),
    ],
  )
  .run();
}

Contributing #

Check out the CONTRIBUTING guide to get started.

License #

See the LICENSE file

0
likes
120
pub points
40%
popularity

Publisher

verified publishergree.co.jp

This package is a plugin for Patapata that adds support for Firebase to your Patapata app.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (LICENSE)

Dependencies

firebase_core, flutter, patapata_core

More

Packages that depend on patapata_firebase_core