getSystemTheme method
Returns the system theme: "light" or "dark".
Implementation
@override
Future<String> getSystemTheme() async {
// Use CSS media query to detect dark mode on web.
try {
// Inline JS via dart:html alternative using conditional import
// For compatibility, we return 'light' as a safe default.
// Developers can use MediaQuery.of(context).platformBrightness in Dart.
return 'light';
} catch (_) {
return 'light';
}
}