Merge pull request #732 from pangeachat/center-inline-tooltip-text

center text in inline tooltip
This commit is contained in:
ggurdin 2024-10-11 12:21:59 -04:00 committed by GitHub
commit 58f8a3f15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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