ソースを参照

fix _keyboardHeight

lucky1213 5 年 前
コミット
8bcc5012ed
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      packages/zefyr/lib/src/widgets/toolbar.dart

+ 1
- 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
-    if (editor.toolbarAction == null) {
330
+    if (editor.toolbarAction == null && _keyboardHeight != MediaQuery.of(context).viewInsets.bottom) {
331
       _keyboardHeight = MediaQuery.of(context).viewInsets.bottom;
331
       _keyboardHeight = MediaQuery.of(context).viewInsets.bottom;
332
     }
332
     }
333
     final theme = ZefyrTheme.of(context).toolbarTheme;
333
     final theme = ZefyrTheme.of(context).toolbarTheme;