How to add actions to Appbar?

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




This is how it will look when you add actions to the Appbar. 



Here is the code that you need to add to your AppBar Class.

AppBar(
title: Text(widget.title),
actions: <Widget>[
IconButton(
icon: Icon(Icons.search),
tooltip: 'Search',
onPressed: null,
),
IconButton(
icon: Icon(Icons.message),
tooltip: 'Message',
onPressed: null,
),
IconButton(
icon: Icon(Icons.more_vert),
tooltip: 'Menu',
onPressed: null,
),
],
),

Thanks. Hope this will be helpful.


Tags: actions; appbar;








0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.


© 2018 - Fluttercentral | Email to me - seven.srikanth@gmail.com