2

Although I am in full screen mode where status bar is hidden but still my menu button on top right corner is not receiving touch. You can see in picture where I have selected the top bar which is receiving the touch.

enter image description here

Half of my menu button is receiving touch and half is not.

I have Also taken picture of Flutter Inspector in Widget Select Mode

enter image description here

I am also adding my custom button code. Just for reference:

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),
    );
  }
}
Noor Ali Butt
  • 798
  • 8
  • 24

2 Answers2

1

You have to wrap your Scaffold with SafeArea like,

enter image description here

without SafeArea layout looks like:

enter image description here

with SafeArea layout looks like:

enter image description here

Mayur Chaudhary
  • 217
  • 1
  • 14
0

use Scaffold in body in child SafeArea and SafeArea inside insert all page safearea has notch and bottom bar avoid

Scaffold(
  body: SafeArea(
    child: ...........
    ...........
  ),
),