mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 10:25:11 +00:00
fix: Emojipicker flickering because noRecent
This commit is contained in:
parent
81943f062c
commit
c10fe91636
1 changed files with 13 additions and 4 deletions
|
@ -33,10 +33,7 @@ class ChatEmojiPicker extends StatelessWidget {
|
|||
iconColor: theme.colorScheme.primary.withOpacity(0.5),
|
||||
iconColorSelected: theme.colorScheme.primary,
|
||||
indicatorColor: theme.colorScheme.primary,
|
||||
noRecents: Text(
|
||||
L10n.of(context)!.emoteKeyboardNoRecents,
|
||||
style: theme.textTheme.bodyLarge,
|
||||
),
|
||||
noRecents: const NoRecent(),
|
||||
skinToneDialogBgColor: Color.lerp(
|
||||
theme.colorScheme.background,
|
||||
theme.colorScheme.primaryContainer,
|
||||
|
@ -49,3 +46,15 @@ class ChatEmojiPicker extends StatelessWidget {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
class NoRecent extends StatelessWidget {
|
||||
const NoRecent({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(
|
||||
L10n.of(context)!.emoteKeyboardNoRecents,
|
||||
style: Theme.of(context).textTheme.bodyLarge,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue