UIWidgets / com.unity.uiwidgets

UIWidgets framework
165 stars 9 forks source link

按了TextField後會出現意想不到的空白在画面的上邊 #29

Open jung-chien opened 7 months ago

jung-chien commented 7 months ago

我在用Unity跟UIWidget1.5.4开发Android程序。 但使用了TextField的時候、画面的上邊會出現一個空白。 出現了這後、之後剩下別的画面所有都會有這空白。

画面是用這下面的代碼創建了。 如果刪除SafeArea的話使用TextField,空白就不會出現,但UI會與前置鏡頭重疊。

【環境】 Android API Level : 33 UIWidget : 1.5.4

public Widget ToWidget() => new SafeArea(
    child: new Scaffold(
        backgroundColor: BackgroundColor,
        appBar: AppBar,
        body: Body,
        bottomNavigationBar: BottomNavigationBar,
        floatingActionButton: FloatingActionButton
    )
);

【按TextField前】 image

【按TextField後】 image