resolve static method
FloatingActionButtonLocation
resolve(
- BuildContext context, {
- required FloatingActionButtonLocation base,
- double? bottomInset,
Uses the nearest SafaehBottomNavScope. Without a scope, the base location is returned unchanged so standalone pages are unaffected.
Implementation
static FloatingActionButtonLocation resolve(
BuildContext context, {
required FloatingActionButtonLocation base,
double? bottomInset,
}) {
final inset =
bottomInset ??
SafaehBottomNavScope.maybeOf(context)?.visualInset ??
0.0;
if (inset <= 0) return base;
return SafaehBottomNavAwareFabLocation(base: base, bottomInset: inset);
}