allowance static method

double allowance({
  1. required double systemInset,
  2. bool action = false,
  3. double accessory = 0,
})

The allowance of a phone's shell before it has measured itself: the bar over systemInset, the accessory's height, and with an action the floating action button and its 16dp gap.

Implementation

static double allowance({
  required double systemInset,
  bool action = false,
  double accessory = 0,
}) =>
    ExpressiveChromeMetrics.navBarHeight +
    systemInset +
    accessory +
    (action ? ExpressiveChromeMetrics.fabClearance : 0);