Login Screen
Component Detail
User Interface
low complexity
mobile
3
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Stateless Flutter widget driven by a BLoC that manages the email and password login form. Handles form validation, loading states, and error display for failed authentication attempts. Serves as the fallback entry point when BankID or Vipps authentication is unavailable or not preferred.
login-screen
Responsibilities
- Render email and password input fields with WCAG 2.2 AA touch targets and contrast
- Display inline validation errors and server-side authentication error messages
- Dispatch login events to AuthBloc and reflect loading/success/failure states
- Provide navigation link to BankID/Vipps login and organization selection
Interfaces
build(BuildContext context)
onEmailChanged(String email)
onPasswordChanged(String password)
onLoginPressed()
showErrorMessage(String message)
showLoadingIndicator()
navigateToHome()
navigateToBankIdLogin()
Relationships
Dependencies (3)
Components this component depends on