Skip to content

Commit e2e5c05

Browse files
author
cole
committed
fixes a bug in header_bar.dart where a platform check is done prior to checking if application is running in web
1 parent ef76db3 commit e2e5c05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/widgets/adw/header_bar.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
147147
);
148148
}
149149

150-
if (Platform.isMacOS) {
150+
if (kIsWeb) {
151+
return;
152+
} else if (Platform.isMacOS) {
151153
updateSep('close,minimize,maximize:');
152154
} else if (Platform.isLinux) {
153155
final schema = GSettings('org.gnome.desktop.wm.preferences');

0 commit comments

Comments
 (0)