Browse Source

fix keyboard action

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

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

317
     switch (platform) {
317
     switch (platform) {
318
       case TargetPlatform.iOS:
318
       case TargetPlatform.iOS:
319
       case TargetPlatform.android:
319
       case TargetPlatform.android:
320
-        widget = hasOverlay ? buildButton(context, ZefyrToolbarAction.showKeyboard) : buildButton(context, ZefyrToolbarAction.hideKeyboard);
320
+        if (keyboardHeight > 0) {
321
+          widget = hasOverlay ? buildButton(context, ZefyrToolbarAction.showKeyboard) : buildButton(context, ZefyrToolbarAction.hideKeyboard);
322
+        } else {
323
+          widget = buildButton(context, ZefyrToolbarAction.showKeyboard);
324
+        }
321
         break;
325
         break;
322
       default:
326
       default:
323
         break;
327
         break;