size of status bar flutter code example Example: flutter get height of status bar import 'dart:ui'; MediaQueryData.fromWindow(window).padding.top