0 purchases
xdg status notifier item
Allows status notifications (i.e. system tray) on Linux desktops using the StatusNotifierItem specification.
import 'package:xdg_status_notifier_item/xdg_status_notifier_item.dart';
late final StatusNotifierItemClient client;
void main() async {
client = StatusNotifierItemClient(
id: 'test-client',
iconName: 'computer-fail-symbolic',
menu: DBusMenuItem(children: [
DBusMenuItem(label: 'Hello'),
DBusMenuItem(label: 'World', enabled: false),
DBusMenuItem.separator(),
DBusMenuItem(
label: 'Quit', onClicked: () async => await client.close()),
]));
await client.connect();
}
copied to clipboard
Contributing to xdg_status_notifier_item.dart #
We welcome contributions! See the contribution guide for more details.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.