center text in inline tooltip

This commit is contained in:
ggurdin 2024-10-11 12:21:09 -04:00
parent 6c90d09a1a
commit 86dcf22411
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -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