scaffold method
Widget
scaffold(
- BuildContext context, {
- required Widget? bottom,
- required FloatingActionButton? fab,
- dynamic drawer,
Implementation
Widget scaffold(BuildContext context,
{required Widget? bottom, required FloatingActionButton? fab, drawer}) {
if (bottom == null) {
return body();
} else {
return Scaffold(
body: Stack(children: [
body(),
bottom,
]),
floatingActionButton: adjustPosition(fab),
drawer: drawer,
);
}
}