분류, 패키지 및 저장소 검색

activity_ring 표지
패키지 상세v0.3.0

activity_ring

애플 워치 스타일 링을 사용하여 프로그레스 바를 생성하는 Flutter 라이브러리입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.8천
좋아요
31
Pub 점수
140

패키지 설치

flutter pub add activity_ring

패키지 개요

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

개발자가 Apple Watch 스타일의 원형 진행 링을 만들 수 있도록 해주는 플러터 라이브러리입니다. 시각적으로 매력적이고 애니메이션 처리된 링은 목표, 시간 또는 완료 비율을 컴팩트하고 직관적인 방식으로 표시하며, 이상적인 선택입니다. 이 패키지는 안드로이드, iOS, 웹, macOS, 윈도우, 리눅스 등 여러 플랫폼을 지원하여 기기 간 일관된 UI를 보장합니다. 앱 테마에 맞게 커스터마이징 가능한 색상, 선 두께 및 애니메이션 효과를 제공합니다. 피트니스 앱, 대시보드 또는 우아한 진행 상황 시각화가 필요한 모든 애플리케이션에 적합합니다.

사용 사례

  • 피트니스 트래킹 앱
  • 대시보드 위젯
  • 목표 완료 지표
  • 시간 기반 진행률 표시
  • 인터랙티브 UI 요소

주요 기능

  • 애플 워치 스타일의 원형 프로그레스 링
  • 사용자 지정 가능한 색상 및 선 두께
  • 부드러운 애니메이션
  • 크로스 플랫폼 지원
  • 간단한 API 통합
  • 반응형 디자인

적합한 대상

  • 피트니스 또는 웰빙 앱을 개발하는 개발자
  • 현대적인 UI 컴포넌트를 찾는 디자이너
  • 시각적 진행 상태 피드백이 필요한 앱
  • 크로스 플랫폼 애플리케이션
  • 목표 지향적 인터페이스를 갖춘 프로젝트

고려 사항

  • Flutter의 페인팅 및 애니메이션 시스템에 대한 이해가 필요합니다
  • 저사양 기기에서는 성능 조정이 필요할 수 있습니다
  • 원형 진행 시각화만 가능
  • 복잡한 데이터 시각화에 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Activity Rings

pub package

Library to create Progress bars in Apple Watch style rings - Apple Watch Rings

To use, import package:activity_ring/activity_ring.dart.

This library is built with to be extremely customizable with low effort. Please check the API documentation if you get stuck anywhere.

Note: Do not let the auto brighten colors to exceed 3 rings as this will cause a runtime exception.

Example

There are several ways to create rings.

Using a single color
Ring(
  percent: 90,
  color: RingColorScheme(ringColor: Colors.red),
  radius: 80,
  width: 10,
  child: Center(child: Text('90%')),
)

RingColor

The above ring is automatically painted with gradients. To have a constant color just pass gradient: false to RingColorScheme.

Using a single gradient
Ring(
  percent: 90,
  color: RingColorScheme(ringGradient: [Colors.red, Colors.blue]),
  radius: 80,
  width: 10,
  child: Center(child: Text('90%')),
),

RingGradient

The above ring is automatically painted with gradient from colors given.

Using same color for a ring with different color for each ring
Ring(
  percent: 190,
  color: RingColorScheme(ringColors: [Colors.red, Colors.blue]),
  radius: 80,
  width: 10,
  child: Center(child: Text('190%')),
),

RingColors

The above ring is automatically painted with gradient from colors given, where each color in list represents that ring's color. To have a constant color just pass gradient: false to RingColorScheme.

Explicitly mentioning gradinet for each ring
Ring(
  percent: 190,
  color: RingColorScheme(ringGradients: [[Colors.red, Colors.yellow], [Colors.yellow, Colors.green]]),
  radius: 80,
  width: 10,
  child: Center(child: Text('190%')),
),

RingGradients

The above ring is automatically painted with gradient from colors given, where each color in list represents that ring's color. To have a constant color just pass gradient: false to RingColorScheme.

TODO

  • [ ] Create templates for apple colors
  • [ ] Add tests and coverage

카테고리

소스 저장소

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

아직 데이터가 없습니다.