mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
isDesktop false if isWeb true in responsive.dart
268b86d131
tries to access Platform._operatingSystem as part of checking whether
it is running on Windows, Linux, or macOS, and this information is not
available on the web. This MR makes it possible to reach the
VeilidChat "Create a new account" screen when running in Chrome
(although the user apparently can't proceed further because of an
"already borrowed" panic). Without this MR, there is an uncaught error
even before getting to that account screen.
This commit is contained in:
parent
268b86d131
commit
bc41ea6d82
@ -7,7 +7,7 @@ bool get isAndroid => !kIsWeb && Platform.isAndroid;
|
|||||||
bool get isiOS => !kIsWeb && Platform.isIOS;
|
bool get isiOS => !kIsWeb && Platform.isIOS;
|
||||||
bool get isWeb => kIsWeb;
|
bool get isWeb => kIsWeb;
|
||||||
bool get isDesktop =>
|
bool get isDesktop =>
|
||||||
Platform.isWindows || Platform.isLinux || Platform.isMacOS;
|
!isWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS);
|
||||||
|
|
||||||
const kMobileWidthCutoff = 479.0;
|
const kMobileWidthCutoff = 479.0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user