wear 0.0.1 copy "wear: ^0.0.1" to clipboard
wear: ^0.0.1 copied to clipboard

outdated

A plugin that offers widgets for Wear OS by Google

Wear #

A collection of widgets for developing Wear OS (Android Wear) apps in Flutter.

Widgets #

There currently three widgets provided by the plugin:

WatchShape #

Determines whether the watch is square or round.

InheritedShape #

An InheritedWidget that can be used to pass the shape of the watch down the widget tree.

AmbientMode #

A builder that provides what mode the watch is in. The widget will rebuild whenever the watch changes mode.

Example #

Typically all three of these widgets would be used near the root of your app's widget tree:

class WatchScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) => WatchShape(
      builder: (context, shape) => InheritedShape(
          shape: shape,
          child: AmbientMode(
            builder: (context, mode) =>
                mode == Mode.active ? ActiveWatchFace() : AmbientWatchFace(),
          )));
}
156
likes
0
pub points
86%
popularity

Publisher

verified publisherfluttercommunity.dev

A plugin that offers widgets for Wear OS by Google

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on wear