actions property

List<Widget> actions
final

Widgets to display after the title widget.

Typically these widgets are IconButtons representing common operations. For less common operations, consider using a PopupMenuButton as the last action.

This sample shows adding an action to an AppBar that opens a shopping cart.
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text('Ready, Set, Shop!'),
      actions: <Widget>[
        IconButton(
          icon: Icon(Icons.shopping_cart),
          tooltip: 'Open shopping cart',
          onPressed: () {
            // Implement navigation to shopping cart page here...
            print('Shopping cart opened.');
          },
        ),
      ],
    ),
  );
}

Implementation

final List<Widget> actions