Skip to content

Commit

Permalink
fix(example): isMobile getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Aug 29, 2024
1 parent 196aecf commit 6000189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ SnackBarThemeData _snackBarThemeData(ColorScheme colorScheme) {
}

bool get isMobile =>
!kIsWeb && Platform.isAndroid || Platform.isIOS || Platform.isFuchsia;
!kIsWeb && (Platform.isAndroid || Platform.isIOS || Platform.isFuchsia);

bool get isDesktop =>
!kIsWeb && (Platform.isLinux || Platform.isMacOS || Platform.isWindows);

0 comments on commit 6000189

Please sign in to comment.