effortless_firebase_auth library

Classes

AuthMethod
Base
ConfirmPassword
DateValidatation
DateValidator
Email
EmailConfig
EmailConfig is responsible for customization of signIn and SignUp fields you can add additonal fields and remove them as well Example remove Confirm Password fields [...]
EmailValidator
Field
FieldValidator<T>
FirebaseExceptionData
Formok
Google
GoogleIdentity
Encapsulation of the fields that represent a Google user's identity.
GoogleSignIn
GoogleSignIn allows you to authenticate Google users.
GoogleSignInAccount
Holds fields describing a signed in user's identity, following GoogleSignInUserData. [...]
GoogleSignInAuthentication
Holds authentication tokens after sign in.
GoogleUserCircleAvatar
Builds a CircleAvatar profile image of the appropriate resolution
LengthRangeValidator
MatchValidator
a special match validator to check if the input equals another provided value;
MaxLengthValidator
MinLengthValidator
MultiValidator
NiceButton
OrWidget
PatternValidator
Protection
Makes sure that onUnAutheticated access see the Widget It actually works and protect the routes
But the problem is on hotreload hotreload works when we have the user authenticated but seems not to work when we reauthenticate the user. For example User is Unauthenticated We present auth screen when user is authenticated we present the onAuthenticated Widget. Problem Now it seems that widget gets cached and build method of onAuthenticated Widget only gets called once. [...]
Px20
Px50
RangeValidator
RequiredValidator
SignIn
TextFieldValidator

Constants

SingleSignOn → const String
'SingleSignOn'

Properties

confirmPassword Field
read-only
confirmPasswordValidator MultiValidator
read-only
currentStore String
read / write
dateValidator DateValidatation
final
emailFeild Field
read-only
emailValidator MultiValidator
read-only
isFirstTimeSubmittedForgotPassword bool
read / write
isFirstTimeSubmittedSignIn bool
read / write
isFirstTimeSubmittedSignUp bool
read / write
nameField Field
read-only
nameValidator RequiredValidator
final
passwordFeild Field
read-only
passwordValidator MultiValidator
read-only
store Map<String, Map<String, dynamic>>
final

Functions

buildText(String s) Text
clearStore([String storeName]) Map<String, dynamic>
createLogList(String storeName, Map<String, dynamic> store) List<String>
createLogStringList(Map<String, dynamic> store) List<String>
createSignInField(Field e) Widget Function(GlobalKey<FormBuilderState>)
createSignUpField(Field e) Widget Function(GlobalKey<FormBuilderState>)
emailVerify(FirebaseAuth fa) Future
fieldToFormField(Field args, GlobalKey<FormBuilderState> key, ValueChanged onChanged) Widget
fireErr(Function0<Future> args) Future<String>
Extracts the firebase error message that may occur when executing the function. If no errors encountered it gives a null response indicating success!! Use case is to extract the error message and display it to user in a snackbar form. TODO CHANGE PACKAGE NAME import 'package:flutter/material.dart'; [...]
getAuth() FirebaseAuth
getColor() Color
getSignInFields() List<Widget Function(GlobalKey<FormBuilderState>)>
getSignUpFields() List<Widget Function(GlobalKey<FormBuilderState>)>
hasEmail(List<AuthMethod> methods) bool
insertAtEnds(List<String> ls, String begin, String end) List<String>
isFirebaseEx(dynamic e) bool
isNonNull(dynamic args) bool
isNull(dynamic args) bool
listToString(List<String> ls) String
logCompleteStore() → void
logStore([String storeName]) → void
pad(List<String> ls, String pad) List<String>
register(String email, String password) Future<UserCredential>
removeStore([String storeName]) Map<String, dynamic>
resetPassword(FirebaseAuth fa, String email) Future
save(String key, dynamic value) → void
saveIfNull(String key, dynamic value) → void
saveIfNullMultiple(Map<String, dynamic> pairs) → void
saveMultiple(Map<String, dynamic> pairs) → void
serve<E>(String key, [dynamic defaultvalue]) → E
serveStore([String storeName]) Map<String, dynamic>
setAuth(FirebaseAuth a) → void
setColor(Color a) → void
showSnackBar(String msg, BuildContext context) → void
useRootStore() → void
useStore(String storeName) → void
validateDate(String value) bool
wrap(Function0<Widget> f) Widget
A simple and no headache solution to implement Responsiveness across Tablets and Desktop. It uses the Widely accepted simple fact that you can bascially limit the maxwidth and center the Screen to make it look good on tablets and Desktops. It is used by the library to implement responsiveness for all screens (viz SignIn, SignUp, EmalVerify...) [...]

Enums

SignInOption
Default configuration options to use when signing in. [...]

Typedefs

FormFieldValidator<T> = String Function(T value)
same function signature as FormTextField's validator;
Function0<A> = A Function()
Function1<A, B> = B Function(A a)
Function3<A, B, C, D> = D Function(A a, B b, C c)