mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 表情去除额外空白;支持悬浮键盘;适配底部虚拟按键
This commit is contained in:
@@ -113,7 +113,7 @@ class _EmotePanelState extends State<EmotePanel>
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
SizedBox(height: MediaQuery.of(context).padding.bottom + 20),
|
||||
SizedBox(height: MediaQuery.of(context).padding.bottom),
|
||||
],
|
||||
);
|
||||
} else {
|
||||
|
||||
@@ -118,10 +118,10 @@ class _VideoReplyNewDialogState extends State<VideoReplyNewDialog>
|
||||
_debouncer.run(() {
|
||||
if (!mounted) return;
|
||||
if (keyboardHeight == 0 && emoteHeight == 0) {
|
||||
setState(() {
|
||||
emoteHeight = keyboardHeight =
|
||||
keyboardHeight == 0.0 ? viewInsets.bottom : keyboardHeight;
|
||||
});
|
||||
if (emoteHeight < 200) emoteHeight = 200;
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -224,7 +224,8 @@ class _VideoReplyNewDialogState extends State<VideoReplyNewDialog>
|
||||
),
|
||||
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<VideoReplyNewDialog>
|
||||
onChoose: (package, emote) => onChooseEmote(package, emote),
|
||||
),
|
||||
),
|
||||
if (toolbarType == 'input' && keyboardHeight == 0.0)
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
height: MediaQuery.of(context).padding.bottom,
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user