xdg_desktop_portal 0.1.7 copy "xdg_desktop_portal: ^0.1.7" to clipboard
xdg_desktop_portal: ^0.1.7 copied to clipboard

outdated

A native Dart implementation of portals. This package allows Dart applications to use portals available on the Linux desktop.

example/example.dart

import 'package:xdg_desktop_portal/xdg_desktop_portal.dart';

void main() async {
  var client = XdgDesktopPortalClient();

  var value =
      await client.settings.read('org.gnome.desktop.interface', 'font-name');
  var fontName = value.asVariant().asString();
  print('Font set to $fontName');

  await client.close();
}
8
likes
0
pub points
76%
popularity

Publisher

verified publishercanonical.com

A native Dart implementation of portals. This package allows Dart applications to use portals available on the Linux desktop.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, dbus

More

Packages that depend on xdg_desktop_portal