Search packages, repositories and app categories

Package detailsv1.1.0

wear

A plugin that offers Flutter support for Wear OS by Google

Android
30-day downloads
3.1K
Likes
167
Pub points
150

Install package

flutter pub add wear

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The wear package provides Flutter support for developing applications tailored to Wear OS by Google, enabling developers to build interactive and responsive watch apps. It integrates seamlessly with Flutter's framework, offering access to Wear OS-specific features such as glanceable UIs, voice input, and sensor data. Designed for Android-based smartwatches, it simplifies the process of creating native-like experiences on wearable devices. The plugin is maintained by the Flutter Community, ensuring community-driven updates and robust functionality.

Use cases

  • Building Flutter apps for Wear OS smartwatches
  • Creating glanceable and quick-action interfaces
  • Integrating voice and sensor inputs on watches
  • Developing companion apps for Android wearables
  • Enabling real-time data display on wrist devices

Key features

  • Native Wear OS integration
  • Support for glanceable and interactive watch faces
  • Access to voice and sensor APIs
  • Cross-platform compatibility with Flutter
  • Community-maintained and well-documented

Suitable for

  • Flutter developers targeting Wear OS devices
  • Teams building smartwatch companion apps
  • Creators focused on wearable user experiences
  • Mobile app developers expanding to wearables
  • Projects requiring lightweight, fast-loading watch interfaces

Considerations

  • Requires Android SDK and Wear OS emulator or device
  • Limited to Android platform
  • May require additional configuration for watch-specific layouts
  • Depends on Flutter version compatibility
  • Testing primarily on physical devices or emulators is recommended

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter Wear Plugin

A plugin that offers Flutter support for Wear OS by Google (Android Wear).

To use this plugin you must set your minSdkVersion to 23.

Tutorial

https://medium.com/flutter-community/flutter-building-wearos-app-fedf0f06d1b4

Widgets

There currently three widgets provided by the plugin:

  • WatchShape: determines whether the watch is square or round.
  • AmbientMode: 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) {
    return WatchShape(
      builder: (BuildContext context, WearShape shape, Widget? child) {
        return AmbientMode(
          builder: (context, mode, child) {
            return mode == Mode.active ? ActiveWatchFace() : AmbientWatchFace();
          },
        );
      },
    );
  }
}

Old Requirements

You DO NOT need to modify these files anymore:

You can remove all the old wearable references from the previous release. This plugin automatically adds all required references and settings.

  1. build.gradle: wearable dependencies

  2. AndroidManifest.xml: WAKE_LOCK and android.hardware.type.watch and com.google.android.wearable.standalone.

  3. MainActivity.kt or MainActivity.java: all AmbientMode references.

Categories

Source repository

Projects using this package