From 86dcf2241181addb2b5f126128f39193054ea26b Mon Sep 17 00:00:00 2001 From: ggurdin Date: Fri, 11 Oct 2024 12:21:09 -0400 Subject: [PATCH] center text in inline tooltip --- lib/pangea/utils/inline_tooltip.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/pangea/utils/inline_tooltip.dart b/lib/pangea/utils/inline_tooltip.dart index f0d95c6f7..bef617b98 100644 --- a/lib/pangea/utils/inline_tooltip.dart +++ b/lib/pangea/utils/inline_tooltip.dart @@ -40,13 +40,15 @@ class InlineTooltip extends StatelessWidget { const SizedBox(width: 8), // Text in the middle Expanded( - child: Text( - instructionsEnum.body(context), - style: TextStyle( - color: Theme.of(context).colorScheme.onSurface, - height: 1.5, + child: Center( + child: Text( + instructionsEnum.body(context), + style: TextStyle( + color: Theme.of(context).colorScheme.onSurface, + height: 1.5, + ), + textAlign: TextAlign.left, ), - textAlign: TextAlign.left, ), ), // Close button on the right