How to add actions to Appbar?

This Article is posted by seven.srikanth at 5/26/2019 2:39:47 PM



<p>This is how it will look when you add actions to the Appbar. ![](https://fluttercentral.com/Uploads/66941528-7e19-4bda-817b-c0b48b5196c5.PNGwidth="50%height="auto](</p> <p>Here is the code that you need to add to your AppBar Class. color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;](AppBar( title: Text(widget.title), actions: [ IconButton( icon: Icon(Icons.search), tooltip: color: #ce9178;]('Search', onPressed: color: #569cd6;](null, ), IconButton( icon: Icon(Icons.message), tooltip: color: #ce9178;]('Message', onPressed: color: #569cd6;](null, ), IconButton( icon: Icon(Icons.more_vert), tooltip: color: #ce9178;]('Menu', onPressed: color: #569cd6;](null, ), ],), Thanks. Hope this will be helpful.</p>


Tags: actions; appbar;








0 Comments
Login to comment.
Recent Comments