scaffold method

Widget scaffold(
  1. BuildContext context, {
  2. required Widget? bottom,
  3. required FloatingActionButton? fab,
  4. 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,
    );
  }
}