Sfoglia il codice sorgente

fix _keyboardHeight

lucky1213 5 anni fa
parent
commit
8bcc5012ed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      packages/zefyr/lib/src/widgets/toolbar.dart

+ 1
- 1
packages/zefyr/lib/src/widgets/toolbar.dart Vedi 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;