platform 3.2.0
platform: ^3.2.0 copied to clipboard
A pluggable, mockable platform information abstraction for Dart.
3.2.0 #
-
New non-backwards compatible API. Use
Platform.currentto access the current platform, andPlatform.current.nativePlatformto either get access to native platform information, or get anullon non-native platforms. SimilarlyPlatform.current.browserPlatformis only non-nullon the web.Mocking APIs are moved to a separate library to ensure they are only used for testing, and to allow better performance in production.
Legacy APIs are deprecated, but retained and emulated using the new API. Use
dart fixto migrate off the deprecated API.
3.1.6 #
- Move to
dart-lang/coremonorepo.
3.1.5 #
- Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
- Transfers the package source from https://github.com/flutter/packages to https://github.com/dart-lang/platform.
3.1.4 #
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
- Fixes new lint warnings.
3.1.3 #
- Adds example app.
3.1.2 #
- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
3.1.1 #
- Transfers the package source from https://github.com/google/platform.dart to https://github.com/flutter/packages.
3.1.0 #
- Removed
Platform.packageRoot, which was already marked deprecated, and which didn't work in Dart 2.
3.0.2 #
- Added
FakePlatform.copyWithfunction.
3.0.1 #
- Added string constants for each of the supported platforms for use in switch statements.
3.0.0 #
- First stable null safe release.
3.0.0-nullsafety.4 #
- Update supported SDK range.
3.0.0-nullsafety.3 #
- Update supported SDK range.
3.0.0-nullsafety.2 #
- Update supported SDK range.
3.0.0-nullsafety.1 #
- Migrate package to null-safe dart.
2.2.1 #
- Add
operatingSystemVersion
2.2.0 #
- Declare compatibility with Dart 2 stable
- Update dependency on
package:testto 1.0
2.1.2 #
- Relax sdk upper bound constraint to '<2.0.0' to allow 'edge' dart sdk use.
2.1.1 #
- Bumped maximum Dart SDK version to 2.0.0-dev.infinity
2.1.0 #
- Added
localeName - Bumped minimum Dart SDK version to 1.24.0-dev.0.0
2.0.0 #
- Added
stdinSupportsAnsiandstdinSupportsAnsi - Removed
ansiSupported
1.1.1 #
- Updated
LocalPlatformto use newdart.ioAPI for ansi color support queries - Bumped minimum Dart SDK version to 1.23.0-dev.10.0
1.1.0 #
- Added
ansiSupported - Bumped minimum Dart SDK version to 1.23.0-dev.9.0
1.0.2 #
- Minor doc updates
1.0.1 #
- Added const constructors for
PlatformandLocalPlatform
1.0.0 #
- Initial version