flutter_macos_widget

Last updated:

0 purchases

flutter_macos_widget Image
flutter_macos_widget Images
Add to Cart

Description:

flutter macos 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");
copied to clipboard
2. Swift #
let value = UserDefaults(suiteName: "appGroup")!.string(forKey: "key")
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.