baseSizeAdjustment property Null safety

Offset baseSizeAdjustment

The base adjustment in logical pixels of the visual density of UI components.

The input density values are multiplied by a constant to arrive at a base size adjustment that fits material design guidelines.

Individual components may adjust this value based upon their own individual interpretation of density.

Implementation

Offset get baseSizeAdjustment {
  // The number of logical pixels represented by an increase or decrease in
  // density by one. The Material Design guidelines say to increment/decrement
  // sized in terms of four pixel increments.
  const double interval = 4.0;

  return Offset(horizontal, vertical) * interval;
}