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

unlisted

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
0
pub points
35%
popularity

Publisher

verified publishermathru.net

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cloud_firestore, firebase_core, flutter, katana

More

Packages that depend on katana_firebase