|
|
|
@ -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),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|