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

Loading…
Cancel
Save