From 6ddaf2774a6b01d9ab980d0e19cfcdd1306c12ee Mon Sep 17 00:00:00 2001 From: poojakhatawate Date: Tue, 21 May 2024 14:30:43 +0530 Subject: [PATCH] formpadding --- .../edit_interaction_screen.dart | 24 ++++++++---- .../interactionform/interaction_screen.dart | 38 +++++++++++-------- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/lib/ui_screen/interactionform/edit_interaction_screen.dart b/lib/ui_screen/interactionform/edit_interaction_screen.dart index 6493ede..62fcbe3 100644 --- a/lib/ui_screen/interactionform/edit_interaction_screen.dart +++ b/lib/ui_screen/interactionform/edit_interaction_screen.dart @@ -290,14 +290,22 @@ class _EditInteractionScreenState extends State { sectionItem.input == 'add' ? const SizedBox.shrink() - : Text( - '${sectionItem.name}:*', - style: TextStyle( - color: Colors.orange - .shade800, - fontSize: isTablet - ? 18 - : 12, + : Padding( + padding: + const EdgeInsets + .only( + left: 8.0, + right: 8.0), + child: Text( + '${sectionItem.name}:*', + style: TextStyle( + color: Colors + .orange + .shade800, + fontSize: isTablet + ? 18 + : 12, + ), ), ), SizedBox( diff --git a/lib/ui_screen/interactionform/interaction_screen.dart b/lib/ui_screen/interactionform/interaction_screen.dart index 8c61ff3..2ea1517 100644 --- a/lib/ui_screen/interactionform/interaction_screen.dart +++ b/lib/ui_screen/interactionform/interaction_screen.dart @@ -282,21 +282,29 @@ class _InteractionScreenState extends State { sectionItem.input == 'add' ? const SizedBox.shrink() - : FittedBox( - fit: BoxFit.scaleDown, - child: Text( - sectionItem - .validation! - .isRequired - ? '${sectionItem.name}:*' - : '${sectionItem.name}:', - style: TextStyle( - color: Colors.orange - .shade800, - fontSize: 18.0, - // fontSize: isTablet - // ? 18 - // : 12, + : Padding( + padding: + const EdgeInsets + .only( + left: 8.0, + right: 8.0), + child: FittedBox( + fit: BoxFit.scaleDown, + child: Text( + sectionItem + .validation! + .isRequired + ? '${sectionItem.name}:*' + : '${sectionItem.name}:', + style: TextStyle( + color: Colors + .orange + .shade800, + fontSize: 18.0, + // fontSize: isTablet + // ? 18 + // : 12, + ), ), ), ),