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

Libraries

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