Widget Callback in Flutter

​​Learn how you can call back widgets and also how you can build Flutter applications using multiple files.

We'll cover the following

Calling widgets in Flutter

In this lesson, we will build a quiz application that will have two different parts.

One part is a question that reflects on the Text widget and the other part is the answers, which reflect on the buttons.

Flutter encourages us to pass down the state of a child as constructor parameters.

So let’s create two child widgets in two separate files like this. The first one is questions.dart:

Get hands-on with 1400+ tech skills courses.