Keep the reaction picker above the system navigation bar

Open the emoji picker through showMeshSheet, which pads the sheet by the
navigation bar or keyboard, instead of a bare modal bottom sheet.
This commit is contained in:
zjs81 committed 2026-10-24 20:58:52 -07:00
1 parent 92b147bd49
commit 918ab7f5a0
3 files changed
+5 -11

No files matched your search

+2 -3
View File
@@ -2307,9 +2307,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
}
void _showEmojiPicker(ChannelMessage message) {
showModalBottomSheet(
context: context,
isScrollControlled: true,
showMeshSheet(
context,
builder: (context) => EmojiPicker(
onEmojiSelected: (emoji) {
_sendReaction(message, emoji);
+2 -3
View File
@@ -1161,9 +1161,8 @@ class _ChatScreenState extends State<ChatScreen> {
}
void _showEmojiPicker(Message message, Contact senderContact) {
showModalBottomSheet(
context: context,
isScrollControlled: true,
showMeshSheet(
context,
builder: (context) => EmojiPicker(
onEmojiSelected: (emoji) {
_sendReaction(message, senderContact, emoji);
+1 -5
View File
@@ -210,12 +210,8 @@ class EmojiPicker extends StatelessWidget {
Widget build(BuildContext context) {
final l10n = context.l10n;
final emojiCategories = _emojiCategories(l10n);
return Container(
return SizedBox(
height: MediaQuery.of(context).size.height * 0.5,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface,
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
),
child: Column(
children: [
Padding(