パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.1.0

wear

GoogleのWear OS用のFlutterサポートを提供するプラグイン

Android
30日間ダウンロード
3000
いいね数
167
Pub ポイント
150

パッケージをインストール

flutter pub add wear

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

wear パッケージは、Google の Wear OS 向けのアプリ開発に Flutter をサポートし、インタラクティブで応答性の高いウォッチアプリの構築を可能にします。Flutter フレームワークとシームレスに統合され、グランスブルーアイ、音声入力、センサーデータなど、Wear OS 固有の機能にアクセスできます。Android ベースのスマートウォッチ向けに設計されており、ウェアラブルデバイス上でネイティブ風の体験を簡単に作成できます。このプラグインは Flutter Community によって維持されており、コミュニティ主導のアップデートと堅牢な機能性を確保しています。

用途

  • Wear OS スマートウォッチ用のFlutterアプリの構築
  • 目視的に確認しやすく、迅速な操作が可能なインターフェースの作成
  • 時計における音声およびセンサー入力の統合
  • Androidウェアラブルデバイス用の補完アプリを開発する
  • 腕のデバイス上でリアルタイムデータ表示を有効化する

主な機能

  • ネイティブな Wear OS 統合
  • 目で見てわかるおよびインタラクティブなウォッチフェイスのサポート
  • 音声およびセンサーAPIへのアクセス
  • Flutter とのクロスプラットフォーム互換性
  • コミュニティがメンテナンスし、しっかりドキュメント化されています

適している対象

  • Wear OS デバイスをターゲットとする Flutter 開発者
  • スマートウォッチの補完アプリを開発するチーム
  • ウェアラブルユーザー体験に注力するクリエイター
  • モバイルアプリ開発者がウェアラブルに拡張しています
  • 軽量で高速読み込みが求められるウォッチインターフェースを備えたプロジェクト

注意事項

  • Android SDK および Wear OS エミュレータまたはデバイスが必要です
  • Android プラットフォームに限定
  • ウォッチ固有のレイアウト用に追加の構成が必要になる場合があります
  • Flutter バージョンの互換性に依存します
  • テストは、主に実機またはエミュレータで行うことを推奨します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト