How do I get the status bar height?
final height = MediaQuery.viewInsetsOf(context).top;
Note: This will only work on mobile devices because other platforms don't have a dedicated status bar and it will returns 0.0 for them.
0.0