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

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

Platform Linux #

pub license: MPL CI codecov

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) {
    ...
  }
}

Contributing #

The list of supported distros and desktop environments is not exhaustive. If you would like to add support for a distro or desktop environment, please see our contribution guidelines.

3
likes
0
pub points
17%
popularity

Publisher

verified publishercanonical.com

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

platform

More

Packages that depend on platform_linux