It gives the constraints to the widget to fit into the screen . It makes the given widget the root widget of the app and other widgets as the child of it. Here we have used the MaterialApp as a root widget in which we have defined the other widgets.24 Kas 2020
Why do we use MaterialApp in Flutter?
It gives the constraints to the widget to fit into the screen . It makes the given widget the root widget of the app and other widgets as the child of it. Here we have used the MaterialApp as a root widget in which we have defined the other widgets.24 Kas 2020