how to calculate statusbar height in flutter code example
Example: flutter get height of status bar
import 'dart:ui';
MediaQueryData.fromWindow(window).padding.top
import 'dart:ui';
MediaQueryData.fromWindow(window).padding.top