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:
1 parent
92b147bd49
commit
918ab7f5a0
3 files changed
+5
-11
No files matched your search
@@ -2307,9 +2307,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _showEmojiPicker(ChannelMessage message) {
|
void _showEmojiPicker(ChannelMessage message) {
|
||||||
showModalBottomSheet(
|
showMeshSheet(
|
||||||
context: context,
|
context,
|
||||||
isScrollControlled: true,
|
|
||||||
builder: (context) => EmojiPicker(
|
builder: (context) => EmojiPicker(
|
||||||
onEmojiSelected: (emoji) {
|
onEmojiSelected: (emoji) {
|
||||||
_sendReaction(message, emoji);
|
_sendReaction(message, emoji);
|
||||||
|
|||||||
@@ -1161,9 +1161,8 @@ class _ChatScreenState extends State<ChatScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _showEmojiPicker(Message message, Contact senderContact) {
|
void _showEmojiPicker(Message message, Contact senderContact) {
|
||||||
showModalBottomSheet(
|
showMeshSheet(
|
||||||
context: context,
|
context,
|
||||||
isScrollControlled: true,
|
|
||||||
builder: (context) => EmojiPicker(
|
builder: (context) => EmojiPicker(
|
||||||
onEmojiSelected: (emoji) {
|
onEmojiSelected: (emoji) {
|
||||||
_sendReaction(message, senderContact, emoji);
|
_sendReaction(message, senderContact, emoji);
|
||||||
|
|||||||
@@ -210,12 +210,8 @@ class EmojiPicker extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final l10n = context.l10n;
|
final l10n = context.l10n;
|
||||||
final emojiCategories = _emojiCategories(l10n);
|
final emojiCategories = _emojiCategories(l10n);
|
||||||
return Container(
|
return SizedBox(
|
||||||
height: MediaQuery.of(context).size.height * 0.5,
|
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(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
|
|||||||
Reference in new issue
Block a user