I am trying to get the exact size of the screen without taking into account the AppBar and BottomNavigationBar
Here is the code:
double screenSize = MediaQuery.of(context).size.height;
double height = screenSize - kToolbarHeight - kBottomNavigationBarHeight;
return SingleChildScrollView(
child: Column(
children: [
SizedBox(
height: height / 2,
child: Container(
color: Colors.red,
),
),
SizedBox(
height: height / 2,
child: Container(
color: Colors.blue,
),
),
],
),
);
By doing this I am getting a height that is slighly bigger than the actual screensize withouth AppBar and BottomNavigationBar
In the screenshots below you can see how I can scroll a little bit
How can I calculate the exact height of that screen area?
Thanks for reading me and helping!

