Make Authentication Module
Generate Authentication module with (credentials or phone)Credentials Components:
- Login screen
- Register screen
- Verify-PinCode screen
- ForgetPassword screen
- ResetPassword screen
- ChangePassword screen
Phone Components:
- Login screen
- Verify-PinCode screen
xflutter_cli make auth
Result:
- Layers Architecture with Phone Auth type
- Modules Architecture with Credentials type
Layer-Based Architecture:
- xflutter_cli_test_application
- android
- assets
- ios
- lib
- data
- data_sources
- remote
- authentication
- authentication_remote_data_source.g.dart
- models
- entities
- user
- requests
- get_verification_code_request
- login_request
- verify_code_request
- repositories
- authentication
- mediators
- controllers
- router
- ui
- screens
- authentication
- login
- verify_pin_code
Feature-Based Architecture:
- xflutter_cli_modules_application
- android
- assets
- ios
- lib
- common
- data
- models
- entities
- user
- router
- mediators
- controllers
- modules
- authentication
- data
- data_sources
- remote
- authentication
- authentication_remote_data_source.g.dart
- models
- requests
- change_password_request
- get_verification_code_request
- login_request
- register_request
- reset_password_request
- verify_code_request
- repositories
- authentication
- presentation
- screens
- change_password
- forget_password
- login
- register
- reset_password
- verify_pin_code
Usage:
Name | Type | Description | Allowed Values | Example |
---|---|---|---|---|
src | option | specify one of the modules to execute command in (monorepo workspace or standalone modular-app) | - | |
auth-types | option | auth module type
| credentials, phone | |
source | option | import file from specific module, this is helpful when you have multiple files with same name and one of them should be imported in the generated file, so you need to tell CLI which one should be imported | - | filename.dart:my_app1 |
sources | option | import file from multiple modules, this is helpful when you have multiple files with same name and many of them of them should be imported in the generated file, so you need to tell CLI which files should be imported | - | models.dart:my_package1, models.dart:my_package2 |