navigationBarHeight property

double get navigationBarHeight

Returns the height of the navigation bar. This property retrieves the height of the system's navigation bar (e.g., the bar with back/home buttons). If no MediaQuery context is available, it defaults to 0.0.

Implementation

double get navigationBarHeight =>
    MediaQuery.maybeOf(this)?.padding.bottom ?? 0.0;