AppBar
Flutter AppBar class is used to display a material design app bar with optional actions (IconButtons).
In Flutter, the AppBarās layout mainly comprises three components: leading, title, and actions. leading is placed at the leftmost position of the AppBar; title and actions appear to its right.
AppBar is typically displayed as a fixed-height widget at the top of the screen. Flutter AppBar widget has properties like actions, backgroundColor, primary, title, etc., that help us to enhance the look or functionality of the AppBar.
MaterialApp is a predefined class in a flutter. Scaffold will provide a framework to implement the basic material design layout of the application. AppBar is usually the topmost component of the app. AppBar is one of the main components of Scaffold widget. The app bar includes the toolbar icons, title of screen, quick action buttons. Using title to display title of the AppBar.
To change background color of AppBar using backgroundColor property.