From e2e5c0596cbd249fb9d1e7b0e6352273754c12df Mon Sep 17 00:00:00 2001 From: cole Date: Sat, 11 Nov 2023 15:06:31 -0500 Subject: [PATCH] fixes a bug in header_bar.dart where a platform check is done prior to checking if application is running in web --- lib/src/widgets/adw/header_bar.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/adw/header_bar.dart b/lib/src/widgets/adw/header_bar.dart index 8215070..d1aba4b 100644 --- a/lib/src/widgets/adw/header_bar.dart +++ b/lib/src/widgets/adw/header_bar.dart @@ -147,7 +147,9 @@ class _AdwHeaderBarState extends State { ); } - if (Platform.isMacOS) { + if (kIsWeb) { + return; + } else if (Platform.isMacOS) { updateSep('close,minimize,maximize:'); } else if (Platform.isLinux) { final schema = GSettings('org.gnome.desktop.wm.preferences');