flutter_widgetkit
1.0.3, released 6 years ago by an unverified publisher
Flutter library for iOS WidgetKit extensions and communication.
What it does
Allows Flutter apps to call essential methods from the iOS WidgetKit framework such as reloading timelines. It also enables data communication with native widgets via App Groups and UserDefaults.
AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building iOS widgets in SwiftUI and need to update timelines from your Flutter app.
- You need to share data between your Flutter app and iOS widgets using App Groups and UserDefaults.
Skip it when
- You want to build the UI of the iOS widgets entirely in Flutter (widgets themselves must be developed natively in SwiftUI).
- You are targeting Android-only or non-iOS platforms.
Strengths
- Simplifies iOS WidgetKit timeline reloading from Flutter.
- Provides key-value communication with native iOS widgets via App Groups.
- Supports null-safety.
Weaknesses
- Widgets themselves must still be developed natively in SwiftUI.
- Limited strictly to iOS WidgetKit functionality.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires setting up iOS App Groups and building the native SwiftUI widgets separately.
import 'package:flutter_widgetkit/flutter_widgetkit.dart';
// Reloading Widget Timelines
WidgetKit.reloadAllTimelines();
WidgetKit.reloadTimelines('test');
// Communicate with Widget
WidgetKit.setItem('testString', 'Hello World', 'group.com.fasky');Alternatives
Packages that do the same job and could replace flutter_widgetkit.
- chrome_extension
Access native chrome.* APIs to build Chrome extensions with Dart and Flutter.
83Compare - file_share_intent
Receive shared content, media files, documents, text, and URLs from external apps via Android and iOS.
56Compare - app_upgrade_flutter_sdk
Integrates with App Upgrade API to prompt users for soft or force app updates.
47Compare - flutter_esim
Check eSIM support and install eSIM profiles on Android and iOS
44Compare