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

discontinuedreplaced by: senior_platform_authentication_ui
outdated

Flutter package which manages the authentication domain.

Login package (Flutter) #

Getting started #

Declare routes #

On your build method on main.dart you need to add the following lines:

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        initialRoute: AppRoutes.identification,
        onGenerateRoute: (settings) =>
            AppRoutes.onGenerateRoute(settings, routes: {
              '/': MyHomePage(),
              '/xpto': MyHomePage(),
            }));
  }
}

Reserved routes

Your application shouldn't declare the following routes, this are reserved paths:

  • /login
  • /login/seniorx
  • /login/saml
  • /login/forgot-password
  • /login/update-password
  • /login/qrcode