You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it is understandable why it does that, I think that when calling Platform.isAndroid in flutter web, it should just return false.
Another suggestion is to add Platform.isWeb to dart:io instead of using the kIsWeb constant from package:flutter/foundation.dart for checking that dart code is executing in the browser.
The text was updated successfully, but these errors were encountered:
While it is understandable why it does that, I think that when calling
Platform.isAndroid
in flutter web, it should just returnfalse
.Another suggestion is to add
Platform.isWeb
todart:io
instead of using thekIsWeb
constant frompackage:flutter/foundation.dart
for checking that dart code is executing in the browser.The text was updated successfully, but these errors were encountered: