Kaynağa Gözat

fix keyboard action

lucky1213 5 yıl önce
ebeveyn
işleme
7010768ff5

+ 5
- 1
packages/zefyr/lib/src/widgets/toolbar.dart Dosyayı Görüntüle

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;