scaffold method

Widget scaffold({
  1. required BuildContext context,
  2. required Widget body,
  3. Widget? floatingActionButton,
  4. List<Widget>? actions,
  5. Widget? drawer,
  6. bool showAppBar = true,
})

Implementation

Widget scaffold({
  required BuildContext context,
  required Widget body,
  Widget? floatingActionButton,
  List<Widget>? actions,
  Widget? drawer,
  bool showAppBar = true,
}) {
  return Scaffold(
    appBar: showAppBar
        ? AppBar(
            title: Text(title),
            actions: actions,
            elevation: 0,
          )
        : null,
    drawer: drawer,
    body: body,
    floatingActionButton: floatingActionButton,
  );
}