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