platform_linux 0.1.2 copy "platform_linux: ^0.1.2" to clipboard
platform_linux: ^0.1.2 copied to clipboard

Linux-specific extensions on the platform package for detecting Linux distro and desktop environment.

Platform Linux #

pub license: MPL

Linux-specific extensions on the platform package for detecting Linux distro and desktop environment.

Imports #

When used in conjunction with package:platform:

import 'package:platform/platform.dart';
import 'package:platform_linux/platform_linux.dart';

Alternatively, with the following syntax, an explicit dependency on package:platform is not required:

import 'package:platform_linux/platform.dart';

Example #

import 'package:platform_linux/platform.dart';

void main() {
  final platform = LocalPlatform();
  if (platform.isUbuntu && platform.isGNOME) {
    ...
  }
}
3
likes
150
pub points
60%
popularity

Publisher

verified publishercanonical.com

Linux-specific extensions on the platform package for detecting Linux distro and desktop environment.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

platform

More

Packages that depend on platform_linux