Reputation: 19
When should I use the following properties
Widget build(BuildContext context) {}
return MaterialApp();
return Scaffold();
Upvotes: 0
Views: 40
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