static bool get isDarkMode {
return MediaQuery.platformBrightnessOf(ShareContext.context) ==
Brightness.dark;
}
static bool get isDarkMode {
return MediaQuery.platformBrightnessOf(ShareContext.context) ==
Brightness.dark;
}
本文标题:flutter深色模式判断
本文链接:https://www.haomeiwen.com/subject/ggqdmktx.html
网友评论