The Authentication UI Toolkit is a modern, flexible, and beautifully designed Flutter package that simplifies the integration of authentication flows in your apps. It includes fully customizable Login, Register, Onboarding, and Forget Password screens that support both light and dark themes.
Before you start, ensure the following:
You will need to send us the public ssh key after generating one on your machine. To do so, please run the following command: "ssh-keygen"
After the above command is executed, please add the ssh key into your .ssh directory using the following command:
1ssh-add ~/.ssh/<ssh_key_name>
Last step is to fetch your public ssh key, to do that, run the following command:
1cat ~/.ssh/<ssh_key_name>.pub
Please send the public key to us. That will be all! Let us know if you need any assistance, we are here to help!
To setup the Mephisto auth app, you need to perform these 3 easy steps.
1ssh-keygen 2ssh-add ~/.ssh/<ssh_key_name> 3
1git clone git.com:A7ALABS/mephisto-auth-app.git mephisto-auth-app1 flutter pub get
Note: You will have to submit the public ssh key while making the purchase, this gives you access to the mephisto auth app that's hosted on github.
1isLightTheme = !ref.read(isDarkThemeProvider); 2ref.read(isDarkThemeProvider.notifier).update((state) => state == true ? false : true); 3
Note: Use watch() instead of read() if you want to listen to changes.
1font = ref.read(fontFamilyProvider.notifier); //read 2font = ref.read(fontFamilyProvider.notifier).update((state) => 'Nunito'); //update 3
1ref.read(accentColorProvider.notifier); // read 2ref.read(accentColorProvider.notifier).update((state) => Colors.red); //update 3
1ref.read(borderRadiusProvider.notifier) //read 2ref.read(borderRadiusProvider.notifier).update((state) => 0) //update 3
Every component is highly customizable using properties like color, padding, borderRadius, and more. For example:
1MephistoTextHeadingBold1( 2 text: "Log into your account", 3 textAlign: TextAlign.center, 4 textColor: Colors.blue, 5); 6
Start by defining your font in the pubspec.yaml file of your Flutter project. Add the font family under the fonts section like this:
1 fonts: 2 - family: Lato 3 fonts: 4 - asset: fonts/Lato/Lato-Black.ttf 5 - asset: fonts/Lato/Lato-BlackItalic.ttf 6 - asset: fonts/Lato/Lato-Bold.ttf 7 - asset: fonts/Lato/Lato-BoldItalic.ttf 8 - asset: fonts/Lato/Lato-Italic.ttf 9 - asset: fonts/Lato/Lato-Light.ttf 10 - asset: fonts/Lato/Lato-LightItalic.ttf 11 - asset: fonts/Lato/Lato-Regular.ttf 12 - asset: fonts/Lato/Lato-Thin.ttf 13 - asset: fonts/Lato/Lato-ThinItalic.ttf 14
Simply pass your font in the MephistoThemeProvider:
1 return MephistoThemeProvider( 2 fontFamily: 'Lato', // your font here 3 // ...rest of the configs 4 ); 5
For detailed api reference, visit Mephisto API Reference. For support, click here or join our discord community.