arc_firebase_auth_sdk 0.0.1 copy "arc_firebase_auth_sdk: ^0.0.1" to clipboard
arc_firebase_auth_sdk: ^0.0.1 copied to clipboard

A reusable Authentication SDK powered by Firebase with pre-built UI and headless mode.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'default_mode_page.dart';
import 'headless_mode_page.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Auth SDK Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const HomePage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Auth SDK Example'),
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => const DefaultModePage()),
                );
              },
              child: const Text('Default UI Mode (Pre-built Widget)'),
            ),
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => const HeadlessModePage()),
                );
              },
              child: const Text('Headless Mode (Custom UI)'),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
110
points
134
downloads

Publisher

unverified uploader

Weekly Downloads

A reusable Authentication SDK powered by Firebase with pre-built UI and headless mode.

Documentation

API reference

License

MIT (license)

Dependencies

firebase_auth, firebase_core, flutter, google_sign_in

More

Packages that depend on arc_firebase_auth_sdk