theme property
Implementation
static ColorScheme get theme {
final context = navigatorKey.currentContext;
if (context == null) {
throw Exception('Navigator context is not available');
}
return Theme.of(context).colorScheme;
}
static ColorScheme get theme {
final context = navigatorKey.currentContext;
if (context == null) {
throw Exception('Navigator context is not available');
}
return Theme.of(context).colorScheme;
}