📜  SwitchListTile 颤动 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:36.157000             🧑  作者: Mango

代码示例1
Flutter SwitchListTile Widget
 -------------------------------
 SwitchListTile(
                title: const Text('Lights'),
                value: ans,
                onChanged: (bool value) {
                  setState(() {
                    ans = value;
                  });
                },
                secondary: const Icon(Icons.lightbulb_outline),
              ),