flow_widget_wear 1.0.0 copy "flow_widget_wear: ^1.0.0" to clipboard
flow_widget_wear: ^1.0.0 copied to clipboard

PlatformAndroid

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.

  1. Add flow_widget_wear as a dependency.
  2. Create a Wear module with a TileService extending FlowWidgetTileService.
  3. Register the service in the Wear module AndroidManifest.xml.
  4. 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
  • getPlatformType returns "wearOs"
0
likes
150
points
27
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#wear-os #tiles #widget

License

MIT (license)

Dependencies

flow_widget_platform_interface, flutter

More

Packages that depend on flow_widget_wear

Packages that implement flow_widget_wear