katana_firebase 2.2.12 copy "katana_firebase: ^2.2.12" to clipboard
katana_firebase: ^2.2.12 copied to clipboard

Base package to handle firebase with Katana package. It performs initialization and other tasks.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:katana_firebase/katana_firebase.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: "Firebase initialize Demo",
      home: FirebaseInitializeDemo(),
    );
  }
}

class FirebaseInitializeDemo extends StatefulWidget {
  const FirebaseInitializeDemo({super.key});

  @override
  State<StatefulWidget> createState() => FirebaseInitializeDemoState();
}

class FirebaseInitializeDemoState extends State<FirebaseInitializeDemo> {
  @override
  void initState() {
    super.initState();
    FirebaseCore.initialize();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Firebase initialize Demo"),
      ),
      body: Center(
        child: Text(
          FirebaseCore.initialized ? "Initialized" : "Not initialized",
        ),
      ),
    );
  }
}
0
likes
160
points
1.7k
downloads

Publisher

verified publishermathru.net

Weekly Downloads

Base package to handle firebase with Katana package. It performs initialization and other tasks.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cloud_firestore, firebase_core, flutter, katana

More

Packages that depend on katana_firebase