Flutter在Android模拟器上底部控制面板要么消失了,要么重叠在我的屏幕上。

huangapple go评论74阅读模式
英文:

Flutter on Android emmulator bottom control panel either disapears or overlaps my screen

问题

我正在开发一个Flutter项目,我注意到当我在Android模拟器/设备上运行时,底部面板(带有控件的面板,抱歉我不确定在Android中叫什么)有时要么不显示,要么显示在屏幕底部并遮挡了底部。这是一个问题,因为那里有一个按钮。

请问有人可以告诉我如何在Flutter中控制这个?我想要的是红色按钮始终显示在底部面板之上。

对此的任何帮助将不胜感激。

请参考附加的屏幕截图:

Flutter在Android模拟器上底部控制面板要么消失了,要么重叠在我的屏幕上。

Flutter在Android模拟器上底部控制面板要么消失了,要么重叠在我的屏幕上。

英文:

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:

Flutter在Android模拟器上底部控制面板要么消失了,要么重叠在我的屏幕上。

Flutter在Android模拟器上底部控制面板要么消失了,要么重叠在我的屏幕上。

答案1

得分: 1

将整个主体小部件包装在"Safe Area"内。

英文:

Wrap the whole body widget inside Safe Area

huangapple
  • 本文由 发表于 2023年4月17日 17:26:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76033622.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定