chore: wrap autocorrect popup in material widget (#2558)

pull/1817/head
ggurdin 6 months ago committed by GitHub
parent 7f11a5dba9
commit 63ade4c995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,22 +13,25 @@ class AutocorrectPopup extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Container(
padding: const EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: theme.colorScheme.surface.withAlpha(200),
borderRadius: BorderRadius.circular(8.0),
),
child: Row(
mainAxisSize: MainAxisSize.min,
spacing: 8.0,
children: [
Text(originalText),
InkWell(
onTap: onUndo,
child: const Icon(Icons.replay, size: 12),
),
],
return Material(
type: MaterialType.transparency,
child: Container(
padding: const EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: theme.colorScheme.surface.withAlpha(200),
borderRadius: BorderRadius.circular(8.0),
),
child: Row(
mainAxisSize: MainAxisSize.min,
spacing: 8.0,
children: [
Text(originalText),
InkWell(
onTap: onUndo,
child: const Icon(Icons.replay, size: 12),
),
],
),
),
);
}

Loading…
Cancel
Save