How to add actions to Appbar?

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

Here are my flutter class room training videos. Idel for those who wants to learn flutter from scratch.


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;


Here are my flutter class room training videos. Idel for those who wants to learn flutter from scratch.




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.




Are you struggling with Slow emulator or having a low Spec machine? Try GenyMotion Emulator with VSCode for Flutter Mobile Apps Development




Search Results





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