JeffG05 / emoji_picker

A Flutter package that provides an Emoji Keyboard widget
https://pub.dev/packages/emoji_picker
BSD 2-Clause "Simplified" License
84 stars 91 forks source link

Display renderflex overflow from bottom. #48

Closed TheAlphamerc closed 3 years ago

TheAlphamerc commented 3 years ago

When using EmojiPicker widget in ModelBottomSheet it show below error for a little time.

A RenderFlex overflowed by 71 pixels on the bottom.

 void displayEmojiPicker(BuildContext context) async {
    await showModalBottomSheet(
      context: context,
      backgroundColor: Colors.transparent,
      builder: (_) {
        return  EmojiPicker(
              rows: 5,
              selectedCategory: Category.SMILEYS,
              columns:10,
              numRecommended: 10,
              onEmojiSelected: (emoji, category) {
                Navigator.pop(context);
               },
            );
      },
    );
  }
osamamohammed98 commented 3 years ago

I have same problem how to solve it

osamamohammed98 commented 3 years ago

I fix it by put it inside listView horizontal

TheAlphamerc commented 3 years ago

Thanks @osamamohammed98 , I'll give it a try.

TheAlphamerc commented 3 years ago

I fix it by put it inside listView horizontal

Thanks @osamamohammed98 it works.