📅  最后修改于: 2022-03-11 15:00:36.895000             🧑  作者: Mango
Consumer(
builder:(context, notifier, child) =>
SwitchListTile(
title: Text("Dark Mode"),
onChanged:(value){
notifier.toggleTheme();
} ,
value: notifier.darkTheme ,
),
),