Browse Source

fix _keyboardHeight

lucky1213 4 years ago
parent
commit
8bcc5012ed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      packages/zefyr/lib/src/widgets/toolbar.dart

+ 1
- 1
packages/zefyr/lib/src/widgets/toolbar.dart View File

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;