瀏覽代碼

fix _keyboardHeight

lucky1213 5 年之前
父節點
當前提交
2d42b7619c
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      packages/zefyr/lib/src/widgets/toolbar.dart

+ 3
- 1
packages/zefyr/lib/src/widgets/toolbar.dart 查看文件

327
 
327
 
328
   @override
328
   @override
329
   Widget build(BuildContext context) {
329
   Widget build(BuildContext context) {
330
-    _keyboardHeight = MediaQuery.of(context).viewInsets.bottom;
330
+    if (editor.toolbarAction == null) {
331
+      _keyboardHeight = MediaQuery.of(context).viewInsets.bottom;
332
+    }
331
     final theme = ZefyrTheme.of(context).toolbarTheme;
333
     final theme = ZefyrTheme.of(context).toolbarTheme;
332
 
334
 
333
     final kToolbarDivider = Container(
335
     final kToolbarDivider = Container(