StartApp Widget

Learn to build the initial widget tree.

We'll cover the following

We know that in a Flutter app, the widget tree starts from MaterialApp, which lies in the main.dart file. In this lesson, we’ll build the immediate child of MaterialApp.

Why do we need a separate widget file for this child? Because the child does some important things that must be done before we can show our main home screen to the world. Remember the splash and onboarding screen? They have a role to play here.


Let’s look at the code below:

Get hands-on with 1200+ tech skills courses.