viewMobile method
Implementation
Widget viewMobile(MenuStateController controller) {
MenuSizes sizes;
var keyboardController = Get.find<KeyboardController>();
if (keyboardController.isOpen) {
sizes = MenuSizes(width: controller.menuSizes.width, height: 150);
} else {
sizes = controller.menuSizes;
}
return Positioned(
bottom: keyboardController.isOpen ? keyboardController.height : 0,
child: PickerMenu(
sizes: sizes,
onBackSpacePressed: controller.currentMenu!.onBackSpacePressed,
onEmojiSelected: controller.currentMenu!.onEmojiSelected,
onGifSelected: controller.currentMenu!.onGifSelected,
colors: controller.menuColors,
textEditingController: controller.currentMenu!.textEditingController,
styles: controller.menuStyles,
viewEmoji: controller.currentMenu!.viewEmoji,
viewGif: controller.currentMenu!.viewGif,
texts: controller.menuTexts,
giphyApiKey: controller.giphyApiKey),
);
}