![]() ![]() It can be customized with various properties to meet the needs of your app. To center this widget instead, consider putting it in a Center widget and having that be the body. The Scaffold widget is commonly used as a top-level widget in Material apps to provide a consistent UI and functionality across screens. The widget in the body of the scaffold is positioned at the top-left of the available space between the app bar and the bottom of the scaffold. ![]() You can then add a Center widget directly to the body property of the Scaffold widget for the home page. Return a Scaffold from the build function of the new widget SimpleList Add an AppBar too, if you wish Add an instance of the widget ListView to the body of. Scaffold ( backgroundColor: Image.asset ('images/background.png').color, body: Container ( decoration: defaultAppBoxDecoration (), ), appBar: AppBar ( elevation: 0.0, backgroundColor: ansparent, title: Text ('Title here', style: TextStyle (color: Colors.teal),), leading: IconButton ( icon: Image.asset ('images/star.png'), onP. When building a Material app in Flutter, you can use the Scaffold widget to provide a default banner, background color, and API for adding drawers, snack bars, and bottom sheets. description body property Widget body final The primary content of the scaffold. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |