...
screens(Only UI) ---------------- providers(state-mgmt & Business-logic) -----------may or may not--------- platform-specific code
Project structure:
Code Block | ||
---|---|---|
| ||
project/
lib/
providers/
auth_provider.dart
models/
user_detail.dart
screens/
home
dashboard.dart
settings.dart
home.dart
onboard
onboard.dart
registration
language_selection.dart
registration.dart
registration_listing.dart
preview.dart
acknowledgment.dart
auth
pwd_auth.dart
finger_auth.dart
iris_auth.dart
face_auth.dart
widgets/
checkbox.dart
radio_button.dart
textbox.dart
dropdown.dart
utils/
constants.dart
file_storage.dart
validators/
regex.dart
mvel.dart
platform_spi/
auth_service.dart
user_service.dart
registration_service.dart
platform_android/
auth_service_impl.dart
user_service_impl.dart
registration_service_impl.dart
platform_web/
auth_service_impl.dart
user_service_impl.dart
registration_service_impl.dart
main.dart |
For each scenario, here we are listing down the possible method channel calls to platform-specific code with the expected response DTO structure.
...