statusBarHeight property

double statusBarHeight

状态栏高度 dp 刘海屏会更高 The offset from the top, in dp

Implementation

double get statusBarHeight =>
    _context == null ? 0 : MediaQuery.of(_context!).padding.top;