Move Platform (or similar) to dart:core #37713
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
customer-flutter
library-core
A primary reason for Flutter apps to import
dart:io
is to access thePlatform
class.Moving this class to
dart:core
(or some other shared library) would simplify development for Flutter Web.FYI - @lrhn @ferhatb @jonahwilliams @kevmoo
If we do this, we'd need to understand what these APIs should return on the Web:
https://api.dartlang.org/dev/2.5.0-dev.1.0/dart-io/Platform-class.html
E.g., does
Platform.isAndroid
mean native Android or would it also be true for Android Chrome, etc.The text was updated successfully, but these errors were encountered: