Merge pull request #884 from pangeachat/wrap-inline-tooltip-text

allow text to wrap in inline tooltips
pull/1476/head
ggurdin 1 year ago committed by GitHub
commit 9a9152f46d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,14 +41,16 @@ class InlineTooltip extends StatelessWidget {
), ),
const SizedBox(width: 8), const SizedBox(width: 8),
// Text in the middle // Text in the middle
Center( Flexible(
child: Text( child: Center(
instructionsEnum.body(L10n.of(context)!), child: Text(
style: TextStyle( instructionsEnum.body(L10n.of(context)!),
color: Theme.of(context).colorScheme.onSurface, style: TextStyle(
height: 1.5, color: Theme.of(context).colorScheme.onSurface,
height: 1.5,
),
textAlign: TextAlign.left,
), ),
textAlign: TextAlign.left,
), ),
), ),
// Close button on the right // Close button on the right

Loading…
Cancel
Save