Add getter for floatingActionButtonLocation in ScaffoldState #147804
Labels
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
P3
Issues that are less important to the Flutter project
team-design
Owned by Design Languages team
triaged-design
Triaged by Design Languages team
Use case
During development of custom bottom app bar I ran into the issue where I need to place items differently based on Scaffold's FAB location.
My current workaround:
Then:
Which is just fine, because as of today, the internal
_floatingActionButtonLocation
changes only ifwidget.floatingActionButtonLocation
is changed.Of course I could simply pass current FAB location to my custom bottom app bar, but it's not the point.
Proposal
Add getter to ScaffoldState:
The text was updated successfully, but these errors were encountered: