What is ”Scaffold()” in flutter

In Flutter, the Scaffold widget is a fundamental layout structure for implementing the basic visual structure of an app. It provides a framework for creating a typical app screen with a standard app bar, drawer, floating action button, bottom navigation bar, and other common elements. The Scaffold widget is often used as the main container for each screen of an app.

//Constructor of Scaffold

const Scaffold({
Key key,
this.appBar,
this.body,
this.floatingActionButton,
this.floatingActionButtonLocation,
this.floatingActionButtonAnimator,
this.persistentFooterButtons,
this.drawer,
this.endDrawer,
this.bottomNavigationBar,
this.bottomSheet,
this.backgroundColor,
this.resizeToAvoidBottomPadding = true,
this.primary = true,
})

Scaffold contains various functionality from giving an appbar, a floating button, a drawer, background color, bottom navigation bar, footer buttons,body.