问题描述
虽然我处于全屏模式,其中状态栏隐藏,但我右上角的菜单按钮仍然没有被触摸。您可以在图片中看到我选择了接收触摸的顶部栏。
我的菜单按钮有一半可以触摸,一半没有。
我还在小部件选择模式
中拍摄了Flutter Inspector的照片class RoundIconButton extends StatelessWidget {
RoundIconButton({
Key key,@required this.onpressed,@required this.icon,this.fillColor = Colors.transparent,}) : super(key: key);
final Icon icon;
final Function onpressed;
final Color fillColor;
@override
Widget build(BuildContext context) {
return RawMaterialButton(
child: icon,onpressed: onpressed,shape: CircleBorder(),fillColor: fillColor,constraints: BoxConstraints.tightFor(height: 50.0,width: 50.0),);
}
}