xdg_desktop_portal 0.1.13 xdg_desktop_portal: ^0.1.13 copied to clipboard
A native Dart implementation of portals. This package allows Dart applications to use portals available on the Linux desktop.
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();
}