Bartosz Zielinski
Bartosz Zielinski

Reputation: 19

When should I use the following properties in Flutter

When should I use the following properties

Widget build(BuildContext context) {}
return MaterialApp();
return Scaffold();

Upvotes: 0

Views: 40

Answers (1)

Mazin Ibrahim
Mazin Ibrahim

Reputation: 7889

MaterialApp() is the one containing or wraps up all your app widgets,it will work without a Scaffold, but a Scaffold will never work without a MaterialApp widget wrapping it if you want to run a standalone app.

Upvotes: 1

Related Questions