Skip to content

Commit

Permalink
Add header tites and update Edit button
Browse files Browse the repository at this point in the history
  • Loading branch information
cbhernan committed Nov 21, 2024
1 parent bba3b6a commit b8691bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
11 changes: 11 additions & 0 deletions lib/views/screens/password_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@ class _PasswordScreenState extends State<PasswordScreen> {

return ListView(
children: [
Padding(
padding: const EdgeInsets.symmetric(vertical: 10),
child: Semantics(
header: true,
child: const Text(
'Password Reset',
textAlign: TextAlign.left,
style: headerStyle
)
)
),
TextFormField(
obscureText: !viewPassword,
autocorrect: false,
Expand Down
14 changes: 12 additions & 2 deletions lib/views/screens/profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,22 @@ class _ProfileScreenState extends State<ProfileScreen> {
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Semantics(
header: true,
child: const Text(
'Profile',
textAlign: TextAlign.left,
style: headerStyle
)
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 10),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: colorScheme.secondaryContainer
),
onPressed: (editMode &&
((user.phone!.isNotEmpty && !validPhoneNumber) ||
!isFormValid) && isNotTestMode
Expand Down

0 comments on commit b8691bf

Please sign in to comment.