Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: Unsupported operation: Platform._operatingSystem #12

Merged
merged 1 commit into from Jul 12, 2021

Conversation

aaongr
Copy link

@aaongr aaongr commented Jul 12, 2021

A wonderful day for all the World, full of potential and new possibilities

Issue:
^ Unsupported operation: Platform._operatingSystem

Reason for the issue: If you use platform.isAndroid or platform.isIOS, it will throw an exception.
Fix: use kIsWeb constant workaround:

import 'package:flutter/foundation.dart' show kIsWeb;
...
if (!kIsWeb && Platform.isAndroid) {

I wish to all of Us,
All the Best
and
an Amazing and Magical new Week :)

@JideGuru JideGuru merged commit 100cbe9 into JideGuru:master Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants