statusBarHeight property

double get statusBarHeight

Height of the status bar area. Returns the platform-specific threshold (e.g., 24pt on iOS, 25pt on Android) if the top inset exceeds it, otherwise returns the raw top inset value. Use this when you need the actual status bar height for layout calculations.

Implementation

double get statusBarHeight {
  final topInset = adaptSafeTop;
  final threshold = StatusBarConfig.currentPlatformThreshold;
  return topInset > threshold ? threshold : topInset;
}