패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.1.0

wear

Google의 Wear OS용 Flutter 지원을 제공하는 플러그인

Android
30일 다운로드
3.1천
좋아요
167
Pub 점수
150

패키지 설치

flutter pub add wear

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

wear 패키지는 Google의 Wear OS용 애플리케이션 개발을 위한 Flutter 지원을 제공하여 개발자가 상호작용적이고 반응성 있는 워치 앱을 만들 수 있도록 합니다. Flutter 프레임워크와 원활하게 통합되어 빠르게 확인할 수 있는 UI, 음성 입력 및 센서 데이터와 같은 Wear OS 전용 기능에 접근할 수 있습니다. 안드로이드 기반 스마트워치를 대상으로 하며, 웨어러블 장치에서 네이티브처럼 느껴지는 경험을 쉽게 구현할 수 있도록 도와줍니다. 이 플러그인은 Flutter 커뮤니티가 유지 관리하여 커뮤니티 중심의 업데이트와 강력한 기능을 보장합니다.

사용 사례

  • Wear OS 스마트워치용 Flutter 앱 빌드
  • 시각적으로 확인하기 쉬우면서 빠른 작업이 가능한 인터페이스 만들기
  • 시계에서 음성 및 센서 입력 통합
  • 안드로이드 웨어러블용 보조 앱 개발
  • 손목 장치에서 실시간 데이터 표시 활성화

주요 기능

  • 네이티브 웨어 OS 통합
  • 시각적이고 상호작용 가능한 워치페이스 지원
  • 음성 및 센서 API에 대한 액세스
  • Flutter와의 크로스 플랫폼 호환성
  • 커뮤니티 유지 보수 및 잘 문서화됨

적합한 대상

  • Wear OS 기기 대상 플러터 개발자
  • 스마트워치 보조 앱을 개발하는 팀
  • 가 wearable 사용자 경험에 집중하는 크리에이터
  • 모바일 앱 개발자가 웨어러블로 확장하고 있습니다
  • 경량이고 빠르게 로드되는 워치 인터페이스가 필요한 프로젝트

고려 사항

  • 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.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트