What is the MaterialApp widget and what does it configure?

Answer

MaterialApp is the root widget for Material Design apps. It configures app-wide settings including the theme (colors, fonts, shapes), routes (named navigation routes), locale (language/region), debugShowCheckedModeBanner, and the initial screen (home). It also sets up the Navigator for managing screen transitions. Every Material app should have exactly one MaterialApp at its root.