-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
from.page-issueReported in a reader-filed concernReported in a reader-filed concern
Description
Page URL
https://docs.flutter.dev/platform-integration/web/faq
Page source
https://github.com/flutter/website/blob/main/src/content/platform-integration/web/faq.md
Describe the problem
FAQ: Does Platform.is work on the web?
Not currently.
Expected fix
Suggest people use:
https://pub.dev/packages/os_detect
Or maybe package:platform when dart-lang/core#936
has landed.
Both are maintained by the Dart team, and are better options than Platform.is... from dart:io.
CC: @lrhn
As far as I recall, os_detect should allow tree shaking. But again that's not really something the language promises.
Additional context
No response
I would like to fix this problem.
- I will try and fix this problem on docs.flutter.dev.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
from.page-issueReported in a reader-filed concernReported in a reader-filed concern