Scaffold

It is often used to be the first widget of an app. It is like the first container of an app.

Scaffold widget is defined like this:

Scaffold()

Options:

There are different options to add to the Scaffold

// appBar
appBar: AppBar(
title: const Text('title'),
elevation: 0,
)

// Body
body: Body(
child: // Widgets here
)

// Background Color
backgroundColor: Colors.white

Last updated