getRatio static method
This function is used to get Aspect Ratio of the screen
Implementation
static double getRatio(Size size, BuildContext context) {
EdgeInsets viewPadding = MediaQuery.of(context).viewPadding;
return (size.height -
viewPadding.top -
viewPadding.bottom -
kToolbarHeight -
kBottomNavigationBarHeight -
4) /
(size.width);
}