impelement geckoview intent handling via viewport api; fix lints and ui issues

This commit is contained in:
Fabian Freund
2026-01-13 11:03:26 +01:00
parent 5e446f1b92
commit 849823f5df
18 changed files with 960 additions and 33 deletions
+5 -1
View File
@@ -80,6 +80,10 @@ class AppColors extends ThemeExtension<AppColors> {
/// Get AppColors from the current theme
static AppColors of(BuildContext context) {
return Theme.of(context).extension<AppColors>() ?? light;
return Theme.of(context).extension<AppColors>() ??
switch (Theme.of(context).brightness) {
Brightness.dark => dark,
Brightness.light => light,
};
}
}