簡體   English   中英

將我的 flutter 應用程序嵌入到 android 應用程序鍵盤重疊文本字段后,但 iOS 鍵盤工作正常

[英]after embed my flutter app into android app keyboard overlapping text field but iOS keyboard working perfectly

我有一個 flutter 應用程序,它也嵌入到 android 和 iOS 中,但是鍵盤隱藏了文本字段,這意味着沒有按照激活的軟鍵盤向上滑動文本字段 flutter 布局未調整大小/調整,因此輸入的信息無法正確顯示

在此處輸入圖像描述

在此處輸入圖像描述

<activity android:name=".activities.MainActivityFlutter"
  android:windowSoftInputMode="adjustResize"/>

<activity
    android:name="io.flutter.embedding.android.FlutterActivity"
    android:theme="@style/MyTheme"
    android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
    android:hardwareAccelerated="true"
    android:windowSoftInputMode="adjustResize"
    />

我們必須在 Android 應用程序的 Manifest.xml 中設置屬性。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM