Parcourir la source

fix _keyboardHeight

lucky1213 il y a 5 ans
Parent
révision
2d42b7619c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      packages/zefyr/lib/src/widgets/toolbar.dart

+ 3
- 1
packages/zefyr/lib/src/widgets/toolbar.dart Voir le fichier

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(