nonso 0.0.8 copy "nonso: ^0.0.8" to clipboard
nonso: ^0.0.8 copied to clipboard

a package that handles username and password authentication in a flutter app. It is based on Firebase Authentication.

Implement email and password authentication in your app by inserting ONE widget from this package in your widget tree.
It is based on Firebase Authentication and Bloc.

auth_optionsregistersign_in

Features #

  • Register user accounts using email and password authentication.
  • Send and resend verification emails to confirm email addresses.
  • Sign in users with email and password.
  • Sign out users.
  • Handle password reset scenarios.

Usage #

  1. Add Firebase to your Flutter app.
  2. Install the firebase_auth plugin.
  3. Install the flutter_bloc package.
  4. Install this package!
  5. Pass your widget to the AuthScreen constructor as a descendat of a widget that can provide a AuthBloc instance, like BlocBrovider<AuthBloc>.
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:nonso/nonso.dart' as nonso;

class MyApp extends StatelessWidget {
  final FirebaseAuth firebaseAuthInstance;
  const MyApp(this.firebaseAuthInstance, {super.key});

  @override
  Widget build(BuildContext context) {
    return BlocProvider<nonso.AuthBloc>(
      create: (context) => nonso.AuthBloc(firebaseAuthInstance),
      child: MaterialApp(
        title: 'Flutter Demo',
        localizationsDelegates: [nonso.AppLocalizations.delegate],
        supportedLocales: nonso.AppLocalizations.supportedLocales,
        home: nonso.AuthScreen(
          // This is your home screen
          const YourHomePage(title: 'Flutter Demo Home Page'),
        ),
      ),
    );
  }
}

Here's an example of a Flutter app that uses this package to handle email and password authentication here. Make sure to use the correct values of your Firebase project in the firebase_options.dart file.

0
likes
0
points
5
downloads

Publisher

verified publishernonso.ahmedsameha1.xyz

Weekly Downloads

a package that handles username and password authentication in a flutter app. It is based on Firebase Authentication.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

firebase_auth, firebase_core, flutter, flutter_bloc, flutter_hooks, flutter_localizations, freezed_annotation, intl

More

Packages that depend on nonso