flow_widget_wear 1.0.0
flow_widget_wear: ^1.0.0 copied to clipboard
Wear OS Tiles companion package for flow_widget. Add this to your Wear OS module — do not use as a replacement for flow_widget_android on phones.
flow_widget_wear #
Wear OS Tiles federated implementation of flow_widget.
Requirements #
The host app must include a Wear OS module. This package provides the MethodChannel bridge, typed storage, and tile update triggers — not the full tile UI.
- Add
flow_widget_wearas a dependency. - Create a Wear module with a
TileServiceextendingFlowWidgetTileService. - Register the service in the Wear module
AndroidManifest.xml. - Pass the fully-qualified service class via
registerConfig:
await FlowWidget.registerConfig(
FlowWidgetConfig(
name: 'StatsTile',
displayName: 'Stats',
androidProviderFullyQualifiedName:
'com.example.wear.StatsTileService',
),
);
Capabilities #
| Feature | Supported |
|---|---|
| Wear OS Tiles | Yes |
| Home widgets | No |
| Scheduled updates | Yes |
| Live Activities | No |
Tile updates #
update, updateMany, and updateAll persist data then call
TileService.getUpdater(context).requestUpdate(...) for registered tile
service classes.
Abstract base class #
Extend FlowWidgetTileService and implement buildTileLayout() using
androidx.wear.protolayout to render stored {t, v} values.
Channels #
- Method channel:
dev.flow_widget/methods - Event channel:
dev.flow_widget/events getPlatformTypereturns"wearOs"