ui_target_platform 1.1.0 ui_target_platform: ^1.1.0 copied to clipboard
This package contains the enum UITargetPlatform, that has the same values than TargetPlatform with a new value web.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ui_target_platform
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
ui_target_platform: ^1.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ui_target_platform/ui_target_platform.dart';