bottomBarHeight property

double bottomBarHeight

底部安全区距离 dp

Implementation

double get bottomBarHeight {
  if (context == null) {
    return 0;
  }
  if (_bottomBarHeight == null || _bottomBarHeight == 0) {
    var view = View.of(context!);
    _bottomBarHeight = view.padding.bottom;
  }
  return (_bottomBarHeight ?? 0) / pixelRatio;
}