Skip to content

Commit

Permalink
change the styling of forget screen buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
singhtrivendra committed Oct 20, 2024
1 parent 31fe5e2 commit 59a3d4f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
16 changes: 15 additions & 1 deletion lib/views/pages/forgot_password/change-password.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
SizedBox(
width: double.infinity,
child: ElevatedButton(
style:ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
backgroundColor: Theme.of(context).colorScheme.primary,
padding: const EdgeInsets.fromLTRB(12, 18, 14, 18),
),
onPressed: () {
Navigator.pushAndRemoveUntil(
context,
Expand All @@ -49,7 +56,14 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
(Route<dynamic> route) => false,
);
},
child: const Text('Back to Login In Page'),
child: Text(
'Back to Login In Page',
style: TextStyle(
color: Theme.of(context).colorScheme.onPrimary,
fontWeight: FontWeight.bold,
fontSize: 16
),
),
),
),
],
Expand Down
15 changes: 14 additions & 1 deletion lib/views/pages/forgot_password/forgot-password.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class ForgotPasswordScreen extends StatelessWidget {

controller: emailController,
decoration: const InputDecoration(
label:Text('Email'),
hintText: 'Email',
hintStyle: TextStyle(
color: Colors.black,
Expand All @@ -80,6 +81,13 @@ class ForgotPasswordScreen extends StatelessWidget {

const SizedBox(height: 40),
ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
backgroundColor: Theme.of(context).colorScheme.primary,
padding: const EdgeInsets.fromLTRB(90, 16, 90, 20),
),
onPressed: () {
final email = emailController.text.trim();
if (email.isNotEmpty) {
Expand Down Expand Up @@ -108,9 +116,14 @@ class ForgotPasswordScreen extends StatelessWidget {
borderRadius:
BorderRadius.all(Radius.circular(30)),
),
child: const Center(
child: Center(
child: Text(
'Send Reset Email',
style: TextStyle(
color: Theme.of(context).colorScheme.onPrimary,
fontWeight: FontWeight.bold,
fontSize: 16
),

),
),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1339,10 +1339,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
vy_string_utils:
dependency: transitive
description:
Expand Down

0 comments on commit 59a3d4f

Please sign in to comment.