英文:
Flutter on Android emmulator bottom control panel either disapears or overlaps my screen
问题
我正在开发一个Flutter项目,我注意到当我在Android模拟器/设备上运行时,底部面板(带有控件的面板,抱歉我不确定在Android中叫什么)有时要么不显示,要么显示在屏幕底部并遮挡了底部。这是一个问题,因为那里有一个按钮。
请问有人可以告诉我如何在Flutter中控制这个?我想要的是红色按钮始终显示在底部面板之上。
对此的任何帮助将不胜感激。
请参考附加的屏幕截图:
英文:
I am working on a Flutter project, I've noticed that when I run it on an Android Emulator / Device, the bottom panel (with the controls on it, sorry I am not sure what this is called in Android) is sometimes either not showing or being shown on top of and hiding the bottom of the screen. Which is a problem as there is a Button located there.
Could someone please let me know how to control this in Flutter. What I want is that the Red button is always showing above the bottom panel.
Any help with this would be much appreciated
Please see the attached screen shots:
答案1
得分: 1
将整个主体小部件包装在"Safe Area"内。
英文:
Wrap the whole body widget inside Safe Area
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论