GitHub

    Table of contents

  1. Example
  2. Related Links

ToggleButtons

Edit this page

A horizontal set of toggle buttons.

Example

ToggleButtons(
  children: <Widget>[
    Icon(Icons.ac_unit),
    Icon(Icons.call),
    Icon(Icons.cake),
  ],
  onPressed: (int index) {
    setState(() {
      isSelected[index] = !isSelected[index];
    });
  },
  isSelected: isSelected,
),

Related Links