diff --git a/lib/pages/emote/view.dart b/lib/pages/emote/view.dart index ffbd4f72..7268675f 100644 --- a/lib/pages/emote/view.dart +++ b/lib/pages/emote/view.dart @@ -113,7 +113,7 @@ class _EmotePanelState extends State ) .toList(), ), - SizedBox(height: MediaQuery.of(context).padding.bottom + 20), + SizedBox(height: MediaQuery.of(context).padding.bottom), ], ); } else { diff --git a/lib/pages/video/detail/reply_new/view.dart b/lib/pages/video/detail/reply_new/view.dart index 18d3fba4..a003eb92 100644 --- a/lib/pages/video/detail/reply_new/view.dart +++ b/lib/pages/video/detail/reply_new/view.dart @@ -118,10 +118,10 @@ class _VideoReplyNewDialogState extends State _debouncer.run(() { if (!mounted) return; if (keyboardHeight == 0 && emoteHeight == 0) { - setState(() { - emoteHeight = keyboardHeight = - keyboardHeight == 0.0 ? viewInsets.bottom : keyboardHeight; - }); + emoteHeight = keyboardHeight = + keyboardHeight == 0.0 ? viewInsets.bottom : keyboardHeight; + if (emoteHeight < 200) emoteHeight = 200; + setState(() {}); } }); }); @@ -224,7 +224,8 @@ class _VideoReplyNewDialogState extends State ), const Spacer(), TextButton( - onPressed: () => Get.back(), child: Text('取消', + onPressed: () => Get.back(), + child: Text('取消', style: TextStyle( color: Theme.of(context).colorScheme.secondary))), const SizedBox(width: 10), @@ -240,6 +241,11 @@ class _VideoReplyNewDialogState extends State onChoose: (package, emote) => onChooseEmote(package, emote), ), ), + if (toolbarType == 'input' && keyboardHeight == 0.0) + SizedBox( + width: double.infinity, + height: MediaQuery.of(context).padding.bottom, + ) ], ), );