From a7d150def273f967a4d8c2b81e4f454df5b09374 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Tue, 30 Jul 2024 09:44:39 +0200 Subject: [PATCH] switching between text alignment --- .../patient_manager/lib/pages/register.dart | 49 +++++++++-------- .../patient_manager/lib/pages/signin.dart | 55 ++++++++++--------- 2 files changed, 55 insertions(+), 49 deletions(-) diff --git a/Frontend/patient_manager/lib/pages/register.dart b/Frontend/patient_manager/lib/pages/register.dart index bab7f602..3fa137e5 100644 --- a/Frontend/patient_manager/lib/pages/register.dart +++ b/Frontend/patient_manager/lib/pages/register.dart @@ -322,30 +322,33 @@ class _RegisterState extends State { SizedBox( width: 450.0, height: 100.0, - child: Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - const Text( - 'Already a User?', - style: TextStyle(fontSize: 18, color: Colors.grey), - ), - const SizedBox( - width: 6, - ), - GestureDetector( - onTap: widget.onTap, - child: Text( - 'Sign In', - style: TextStyle( - fontSize: 18, - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - fontWeight: FontWeight.bold, - ), + child: Padding( + padding: const EdgeInsets.all(30.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + const Text( + 'Already a User?', + style: TextStyle(fontSize: 18, color: Colors.grey), ), - ) - ], + const SizedBox( + width: 6, + ), + GestureDetector( + onTap: widget.onTap, + child: Text( + 'Sign In', + style: TextStyle( + fontSize: 18, + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + fontWeight: FontWeight.bold, + ), + ), + ) + ], + ), ), ) ], diff --git a/Frontend/patient_manager/lib/pages/signin.dart b/Frontend/patient_manager/lib/pages/signin.dart index 1b4a3af9..2f2c6a3b 100644 --- a/Frontend/patient_manager/lib/pages/signin.dart +++ b/Frontend/patient_manager/lib/pages/signin.dart @@ -205,35 +205,38 @@ class _SignInState extends State { SizedBox( width: 450.0, height: 100.0, - child: Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - const Text( - 'New User?', - style: TextStyle( - fontSize: 18, - color: Color.fromARGB(255, 201, 200, 200)), - ), - const SizedBox( - width: 6, - ), - GestureDetector( - onTap: widget.onTap, - child: Text( - 'Register Now', + child: Padding( + padding: const EdgeInsets.all(15.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + const Text( + 'New User?', style: TextStyle( - fontSize: 18, - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - fontWeight: FontWeight.bold, + fontSize: 18, + color: Color.fromARGB(255, 201, 200, 200)), + ), + const SizedBox( + width: 6, + ), + GestureDetector( + onTap: widget.onTap, + child: Text( + 'Register Now', + style: TextStyle( + fontSize: 18, + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + fontWeight: FontWeight.bold, + ), ), ), - ), - const SizedBox( - width: 15, - ), - ], + const SizedBox( + width: 15, + ), + ], + ), ), ) ],