flutter_macos_widget 1.0.1 copy "flutter_macos_widget: ^1.0.1" to clipboard
flutter_macos_widget: ^1.0.1 copied to clipboard

PlatformmacOS

Develop for macOS app widget.

flutter_macos_widget #

Flutter Library for macOS WidgetKit and Widget Communication

💡 Usage #

1. Flutter #

import 'package:flutter_macos_widget/flutter_macos_widget.dart';


final widgetKit = FlutterMacosWidget("appGroup");


// use "UseDefaults" to communicate with Widget
widgetKit.set("key", "value")
widgetKit.get("key")
widgetKit.remove("key")

// force reload macOS widget
FlutterMacosWidget.reloadAllTimelines();
FlutterMacosWidget.reloadTimelines("ofKind");

2. Swift #

let value = UserDefaults(suiteName: "appGroup")!.string(forKey: "key")
0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Develop for macOS app widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_macos_widget