How to add actions to Appbar?

This Article is posted by seven.srikanth at 26-05-2019 14:39:47

Click here to support us by Subscribing to our youtube channel.


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;


Click here to support us by Subscribing to our youtube channel.




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.




Wave animation in Flutter




Search Results





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