chore: snackbar close button
This commit is contained in:
parent
d92de722ce
commit
f35562f78d
1 changed files with 8 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ mixin LemmaEmojiSetter {
|
|||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
content: Row(
|
||||
spacing: 8.0,
|
||||
children: [
|
||||
|
|
@ -58,7 +59,7 @@ mixin LemmaEmojiSetter {
|
|||
);
|
||||
},
|
||||
),
|
||||
Flexible(
|
||||
Expanded(
|
||||
child: Text(
|
||||
L10n.of(context).emojiSelectedSnackbar(constructId.lemma),
|
||||
textAlign: TextAlign.center,
|
||||
|
|
@ -67,6 +68,12 @@ mixin LemmaEmojiSetter {
|
|||
),
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close),
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
onPressed: () =>
|
||||
ScaffoldMessenger.of(context).hideCurrentSnackBar(),
|
||||
),
|
||||
],
|
||||
),
|
||||
duration: const Duration(seconds: 30),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue