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

A customizable Flutter login UI with Firebase authentication using GetX.

example/lib/main.dart

// import 'package:flutter/material.dart';
// import 'package:firebase_core/firebase_core.dart';
// import 'package:login_fire/login_fire.dart';

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

//   await LoginFire.initializeFirebase(
//     firebaseOptions: FirebaseOptions(
//       apiKey: "YOUR_API_KEY",
//       authDomain: "YOUR_AUTH_DOMAIN",
//       projectId: "YOUR_PROJECT_ID",
//       storageBucket: "YOUR_STORAGE_BUCKET",
//       messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
//       appId: "YOUR_APP_ID",
//     ),
//   );

//   runApp(MyApp());
// }

// class MyApp extends StatelessWidget {
//   final config = LoginFireConfig(
//     appName: "My Modern App",
//     onSuccess: () => 'Login Successful',
//     onError: (error) =>'Login Failed: $error',
//     lightTheme: LoginFireThemeConfig(
//       backgroundColor: Colors.white,
//       backgroundImage: 'assets/bg_light.png',
//       headerImage: 'assets/header_light.png',
//       titleTextStyle: TextStyle(color: Colors.black, fontSize: 32),
//       buttonTextStyle: TextStyle(color: Colors.white),
//       inputTextStyle: TextStyle(color: Colors.black),
//       hintTextStyle: TextStyle(color: Colors.grey),
//       errorMessageStyle: TextStyle(color: Colors.red),
//       successMessageStyle: TextStyle(color: Colors.green),
//       forgotPasswordTextStyle: TextStyle(color: Colors.blue),
//     ),
//     darkTheme: LoginFireThemeConfig(
//       backgroundColor: Colors.black,
//       backgroundImage: 'assets/bg_dark.png',
//       headerImage: 'assets/header_dark.png',
//       titleTextStyle: TextStyle(color: Colors.white, fontSize: 32),
//       buttonTextStyle: TextStyle(color: Colors.black),
//       inputTextStyle: TextStyle(color: Colors.white),
//       hintTextStyle: TextStyle(color: Colors.white70),
//       errorMessageStyle: TextStyle(color: Colors.redAccent),
//       successMessageStyle: TextStyle(color: Colors.greenAccent),
//       forgotPasswordTextStyle: TextStyle(color: Colors.tealAccent),
//     ),
//   );

//   const MyApp({super.key});

//   @override
//   Widget build(BuildContext context) {
//     return MaterialApp(home: LoginFire.buildLoginPage(config: config));
//   }
// }
0
likes
140
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter login UI with Firebase authentication using GetX.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, firebase_auth, firebase_core, flutter, get, google_sign_in

More

Packages that depend on login_fire