We used various other widget inside this to make a little attractive drawer but don’t worry about all the other widgets, as we’ll be covering in the series. Use at most a single floating action button per screen. Floating action buttons are most commonly used in the Scaffold.floatingActionButton field. A floating action button is a circular icon button that hovers over content to promote a primary action in the application. Here, the drawer property of scaffold is used to create a drawer. A Material Design floating action button. people), ), ListTile( title: new Text("Promotions"), leading: new Icon(Icons. inbox), ), ListTile( title: new Text("Social"), leading: new Icon(Icons. mail), ), Divider( height: 0.1, ), ListTile( title: new Text("Primary"), leading: new Icon(Icons. It uses the Drawer widget properties which is a material design panel that slides in horizontally from the edge of a Scaffold to show navigation links in an application and this widget is used in scaffold using Scaffold.drawer property.ĭrawer: Drawer( elevation: 16.0, child: Column( children:, ), ListTile( title: new Text("All Inboxes"), leading: new Icon(Icons. One usually has to swipe left to right or right to left to access the drawer. In simpler terms, scaffolds are like a structure defined by a framework (Flutter) that contains the basic elements needed to build a user interface(UI).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |