GitHub

    Table of contents

  1. 示例
  2. 相关链接

Switch

Edit this page

A material design switch.

示例

bool _value = true;

Switch(
  value: _value,
  onChanged: (bool newValue) {
    setState(() {
      _value = newValue;
    });
  },
)

相关链接