scaffoldSize property Null safety

Size scaffoldSize

The Size of the whole Scaffold.

If the Size of the Scaffold's contents is modified by values such as Scaffold.resizeToAvoidBottomInset or the keyboard opening, then the scaffoldSize will not reflect those changes.

This means that FloatingActionButtonLocations designed to reposition the FloatingActionButton based on events such as the keyboard popping up should use minInsets to make sure that the FloatingActionButton is inset by enough to remain visible.

See minInsets and MediaQueryData.padding for more information on the appropriate insets to apply.


final Size scaffoldSize;