Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/features/auth/presentation/pages/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class _LoginScreenState extends State<LoginScreen> with SingleTickerProviderStat
final GlobalKey<FormBuilderState> _loginFormKey = GlobalKey<FormBuilderState>(debugLabel: '__loginFormKey__');
final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>(debugLabel: '__loginScaffoldKey__');
late AnimationController _animController;
final FocusNode _forgotPwFocus = FocusNode(skipTraversal: true);

@override
void initState() {
Expand All @@ -37,6 +38,7 @@ class _LoginScreenState extends State<LoginScreen> with SingleTickerProviderStat

@override
void dispose() {
_forgotPwFocus.dispose();
_animController.dispose();
super.dispose();
}
Expand Down Expand Up @@ -497,6 +499,7 @@ class _LoginScreenState extends State<LoginScreen> with SingleTickerProviderStat
key: loginTextFieldUsernameKey,
name: 'username',
decoration: const InputDecoration(hintText: 'm@example.com'),
textInputAction: TextInputAction.next,
validator: FormBuilderValidators.compose([
FormBuilderValidators.required(errorText: S.of(context).required_field),
FormBuilderValidators.minLength(4, errorText: S.of(context).min_length_4),
Expand Down Expand Up @@ -558,6 +561,7 @@ class _LoginScreenState extends State<LoginScreen> with SingleTickerProviderStat
Widget _forgotPasswordLink(BuildContext context) {
return TextButton(
key: loginButtonForgotPasswordKey,
focusNode: _forgotPwFocus,
onPressed: () => context.push(ApplicationRoutesConstants.forgotPassword),
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 4),
Expand Down
6 changes: 6 additions & 0 deletions lib/features/settings/presentation/pages/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class SettingsScreen extends StatelessWidget {
subtitle: 'View or edit your profile information',
onTap: () => context.push(ApplicationRoutesConstants.account),
),
],
),
const SizedBox(height: AppSpacing.sm),
_SettingsSection(
title: S.of(context).change_password,
children: [
_SettingsTile(
key: settingsChangePasswordButtonKey,
icon: Icons.lock_outline,
Expand Down