flow_widget_ios 1.0.2 copy "flow_widget_ios: ^1.0.2" to clipboard
flow_widget_ios: ^1.0.2 copied to clipboard

PlatformiOS

iOS implementation of the flow_widget federated plugin.

flow_widget_ios #

iOS federated implementation for flow_widget.

Requirements #

  • iOS 14.0 or later — WidgetKit requires iOS 14+.
  • Live Activities / Dynamic Island require iOS 16.2+.
  • CocoaPods and Swift Package Manager are both supported.
  • Set your app's deployment target to at least 14.0:
# ios/Podfile
platform :ios, '14.0'

In Xcode: Runner target → General → Minimum Deployments → iOS 14.0.

See Flutter iOS deployment.

Features #

  • App Group UserDefaults storage with typed wire codec
  • WidgetKit timeline reload via WidgetCenter
  • Image persistence in the shared app group container
  • Live Activities via ActivityKit (iOS 16.2+) with generic attributes
  • Dynamic Island support when available
  • Swift Package Manager + CocoaPods

Setup #

  1. Enable an App Group in your Runner target and widget extension.
  2. Pass the group id via FlowWidgetOptions(appGroupId: 'group.dev.flowwidget').
  3. 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.

0
likes
150
points
48
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

iOS implementation of the flow_widget federated plugin.

Repository (GitHub)
View/report issues

Topics

#widget #home-widget #ios

License

MIT (license)

Dependencies

flow_widget_platform_interface, flutter

More

Packages that depend on flow_widget_ios

Packages that implement flow_widget_ios