firebase_auth_simplified_ui 1.0.0 copy "firebase_auth_simplified_ui: ^1.0.0" to clipboard
firebase_auth_simplified_ui: ^1.0.0 copied to clipboard

A plug-and-play Flutter package for Firebase Auth UI (login, signup, forgot password)

firebase_auth_simplified_ui #

A plug-and-play Flutter package that provides beautiful, customizable Firebase authentication screens (Login, Signup, and Forgot Password) so you can integrate user authentication in just a few lines of code.

Demo Screenshot

πŸš€ Features #

  • Ready-Made Screens: Login, Signup, and Forgot Password with modern UI out-of-the-box.
  • Firebase Integration: Simplifies firebase_auth calls under the hood.
  • Customizable Themes: Override colors, text styles, padding, and logos via DefaultAuthTheme.
  • Form Validation: Built-in email and password validators.
  • Loading & Error States: Shows progress indicators and user-friendly error messages.
  • Callbacks: Easy hooks for navigation and handling successful auth flows.

πŸ“¦ Installation #

Add the package to your pubspec.yaml:

dependencies:
  firebase_auth_simplified_ui: ^0.1.0

Then run:

dart pub get

πŸ’‘ Usage #

Wrap your app with the theme (optional) and launch the Login screen:

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

void main() {
  runApp(
    DefaultAuthTheme(
      // Customize theme properties here
      child: MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: LoginScreen(
        onLoginSuccess: (user) {
          // Navigate to home
        },
        onRegisterTap: () {
          Navigator.push(
            context,
            MaterialPageRoute(builder: (_) => SignupScreen(onSignupSuccess: (user) {/*...*/})),
          );
        },
        onForgotPasswordTap: () {
          Navigator.push(
            context,
            MaterialPageRoute(builder: (_) => ForgotPasswordScreen()),
          );
        },
      ),
    );
  }
}

πŸ› οΈ Customization #

Use DefaultAuthTheme to override:

DefaultAuthTheme(
  backgroundColor: Colors.grey.shade100,
  inputDecoration: InputDecoration(
    filled: true,
    fillColor: Colors.white,
    border: OutlineInputBorder(borderRadius: BorderRadius.circular(16)),
  ),
  primaryButtonStyle: ButtonStyle(
    backgroundColor: MaterialStatePropertyAll(Colors.deepPurple),
  ),
  logo: Image.asset('assets/logo.png', height: 100),
  child: MyApp(),
)

πŸŽ“ Example App #

Check the example/ folder for a complete demo showcasing:

  • Screen navigation flow
  • Theme overrides
  • Handling success and error callbacks

πŸ“– Documentation & Support #

❀️ Contributing #

  1. Fork the repo
  2. Create a new branch: git checkout -b feature/YourFeature
  3. Commit your changes: `git commit -m 'Add YourFeature'
  4. Push to the branch: git push origin feature/YourFeature
  5. Open a Pull Request

πŸ“œ License #

This project is licensed under the MIT License. See LICENSE for details.

3
likes
145
points
63
downloads

Publisher

unverified uploader

Weekly Downloads

A plug-and-play Flutter package for Firebase Auth UI (login, signup, forgot password)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

firebase_auth, firebase_core, flutter, provider

More

Packages that depend on firebase_auth_simplified_ui