getOffsetX method Null safety
- ScaffoldPrelayoutGeometry scaffoldGeometry,
- double adjustment
override
Calculates x-offset for center-aligned FloatingActionButtonLocations.
Implementation
@override
double getOffsetX(ScaffoldPrelayoutGeometry scaffoldGeometry, double adjustment) {
return (scaffoldGeometry.scaffoldSize.width - scaffoldGeometry.floatingActionButtonSize.width) / 2.0;
}