isDarkMode function
Implementation
bool isDarkMode(BuildContext context) {
if (Theme.of(context).colorScheme == CantonDarkColors.colorScheme) {
return true;
} else {
return false;
}
}
bool isDarkMode(BuildContext context) {
if (Theme.of(context).colorScheme == CantonDarkColors.colorScheme) {
return true;
} else {
return false;
}
}