📜  CupertinoSwitch 底部边框 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:41.004000             🧑  作者: Mango

代码示例1
MergeSemantics(
  child: ListTile(
    title: Text('Lights'),
    trailing: CupertinoSwitch(
      value: _lights,
      onChanged: (bool value) { setState(() { _lights = value; }); },
    ),
    onTap: () { setState(() { _lights = !_lights; }); },
  ),
)