google / platform.dart Goto Github PK
View Code? Open in Web Editor NEWA generic platform abstraction for Dart
License: BSD 3-Clause "New" or "Revised" License
A generic platform abstraction for Dart
License: BSD 3-Clause "New" or "Revised" License
Until flutter/flutter#39998 would it make sense to add isWeb
as part of this package?
Related issues
The Dart SDK constraint needs to be updated to declare compatibility with Dart 2 stable:
https://github.com/google/platform.dart/blob/master/pubspec.yaml#L12
It currently is not clear what version of the source code matches the package published on Pub.dev.
Can we find the flutter version from the platform plugin?
Will be "\r\n"
in Windows and "\n"
in other platforms.
Context: dart-lang/sdk#29369
Currently the package is marked as maintained by an unverified publisher on pub
https://pub.dev/packages/platform
The removal of Platform.packageRoot
urgently requires a new major version IMHO as also discussed in #38 because apps (transitively) depending on it might not build now with the latest flutter stable.
For example path_provider
depends on platform
via path_provider_platform_interface
in the form of platform: ^3.0.0
. If pub resolves this with 3.0.1
a build error will happen with Dart 2.16 (flutter stable) because dart:io
's Platform.packageRoot
got removed.
I'm sure there are more examples like this.
cc @mit-mit
As in title i think it will be useful to provide an example of the usage.
This read-only property would extract the info from the PATH
environment variable and know to split on ;
vs :
based on the platform.
A lot of packages depend on this "platform" package. But this package causes error since the new version. This issue is already solved by the "universal platform" package. Isn't it possible to replace this package with that package or at least solve this error issue, which shows up now in almost every package, that I'm using for web
I found out that none of the platform libs have support for IpadOS.
I am currently using import 'dart:io' show Platform;
and tried out this lib.
Is there any prevision to add this? I could not find the dart:io Github, so I am opening an issue here, since it is plataform related.
The latest release of the Dart SDK (i.e. version 2.0.0-dev.69 at the time of writing) let us verify that a package and its dependencies are ready for the upcoming stable Dart 2 SDK (thanks to the _PUB_TEST_SDK_VERSION
environment variable).
I've a project that depends on the platform
package (v2.1.2), and there is an issue:
$ _PUB_TEST_SDK_VERSION=2.0.0 pub upgrade
Resolving dependencies... (9.3s)
The current Dart SDK version is 2.0.0.
Because my_project depends on platform >=1.0.1 which requires SDK version >=1.19.0 <2.0.0-dev.infinity, version solving failed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.