flow_widget_ios 1.0.0
flow_widget_ios: ^1.0.0 copied to clipboard
iOS implementation of the flow_widget federated plugin.
flow_widget_ios #
iOS federated implementation for flow_widget.
Features #
- App Group
UserDefaultsstorage with typed wire codec - WidgetKit timeline reload via
WidgetCenter - Image persistence in the shared app group container
- Live Activities via ActivityKit (iOS 16.1+) with generic attributes
- Dynamic Island support when available
Setup #
- Enable an App Group in your Runner target and widget extension.
- Pass the group id via
FlowWidgetOptions(appGroupId: 'group.dev.flowwidget'). - Register widget kinds with
FlowWidget.registerConfig(iosKind: ...).
Channel contract #
- Method channel:
dev.flow_widget/methods - Event channel:
dev.flow_widget/events
Live Activities #
The plugin uses a generic FlowWidgetActivityAttributes type with a
[String: String] content state. Complex values are JSON-encoded in the
string map. For custom ActivityAttributes types generated by the CLI, store
activity metadata in the shared container and render in your extension.