kMiniButtonOffsetAdjustment top-level constant
double
const kMiniButtonOffsetAdjustment
If a FloatingActionButton is used on a Scaffold in certain positions, it is moved kMiniButtonOffsetAdjustment pixels closer to the edge of the screen.
This is intended to be used with FloatingActionButton.mini set to true, so that the floating action button appears to align with CircleAvatars in the ListTile.leading slot of a ListTile in a ListView in the Scaffold.body.
More specifically:
- In the following positions, the FloatingActionButton is moved horizontally closer to the edge of the screen:
- In the following positions, the FloatingActionButton is moved vertically closer to the bottom of the screen:
Implementation
const double kMiniButtonOffsetAdjustment = 4.0;