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

simple_progress_indicators 표지
패키지 상세v0.2.0

simple_progress_indicators

고정 색상과 그라데이션을 갖춘 간단한 진행률 인디케이터 패키지입니다. 진행률 표시 또는 간단한 애니메이션에 사용할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
7천
좋아요
40
Pub 점수
140

패키지 설치

flutter pub add simple_progress_indicators

패키지 개요

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

단순한 진행률 인디케이터를 제공하며 고체 색상과 그라데이션 지원을 갖춘 가벼운 플러터 패키지입니다. 앱에서 로딩 상태를 표시하거나 미묘한 애니메이션을 만드는 데 이상적입니다. 패키지는 쉽게 통합 가능하며 여러 플랫폼에서 깔끔하고 사용자 정의 가능한 시각 피드백을 제공합니다. Android, iOS, Web, macOS, Windows, Linux를 모두 지원하여 크로스플랫폼 개발에 유용합니다. 복잡한 설정 없이 최소한의 디자인으로 효과적인 진행률 시각화를 원하는 개발자를 위한 것입니다.

사용 사례

  • 로딩 상태 표시기
  • 애니메이션 진행 표시
  • 간단한 UI 피드백
  • 크로스 플랫폼 진행 막대
  • 사용자 정의 가능한 로딩 애니메이션
  • 앱 스플래시 화면

주요 기능

  • 단색 진행 막대
  • 그라데이션 지원
  • 최소 구성
  • 크로스 플랫폼 호환성
  • 간편한 통합
  • 경량 크기

적합한 대상

  • 초보자 플러터 개발자
  • 간단한 앱 인터페이스
  • 로딩 UX 개선
  • 빠른 프로토타이핑
  • 경량 지표가 필요한 앱
  • 양식 또는 다운로드에서의 시각적 피드백

고려 사항

  • 제한된 사용자 정의 옵션
  • 고급 스타일링 기능 없음
  • 복잡한 애니메이션에 적합하지 않습니다
  • 기본적인 진행 요구 사항에 가장 적합
  • 내장된 일시정지/재개 컨트롤 없음
  • 외부 종속성 관리에 의존합니다

원본 README

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

Simple progress indicators package with solid colors and gradients. Can be used to show progress or for simple progress bar animation.

How it looks

Table of contents

Usage

Linear Progress indicator

ProgressBar

ProgressBar is a basic linear indicator widget. It's a Stateless Widget that produces basic horizontal rounded rectangle with optional background rounded rectangle underneath. Include it in your build method like:

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: ProgressBar(
            value: 0.5,
            //specify only one: color or gradient
            //color:Colors.red,
            gradient: LinearGradient(
              begin: Alignment.topLeft,
              end: Alignment.bottomRight,
              colors: [Colors.yellowAccent, Colors.deepOrange],
            ),
          ),
        ),
      ),
    );
  }

It has several configurable parameters:

  • value - current indicator value, where 0.0 is 0% progress, 1.0 is 100% progress
  • width - indicator width, defaults to 200.0
  • height - indicator height, defaults to 10.0
  • color - solid indicator fill color
  • gradient - gradient fill, accepts Gradient class
  • backgroundColor - solid indicator background color, defaults to transparent

Minimum working widget requires only a value and color OR gradient property. NOTE: Specifying both properties is not accepted.

ProgressBarAnimation

ProgressBarAnimation is a simple animating progress bar widget. It animates ProgressBar widget for a given duration. Animation starts at the time the widget is built.

It has several configurable parameters:

  • duration - 0% to 100% animation duration
  • width - indicator width, defaults to 200.0
  • height - indicator height, defaults to 10.0
  • color - solid indicator fill color
  • gradient - gradient fill, accepts Gradient class
  • backgroundColor - solid indicator background color, defaults to transparent
  • curve - animation curve, defaults to linear. For other curves check Curves
ProgressBarAnimation(  
  duration: const Duration(seconds: 2),  
  gradient: const LinearGradient(  
    colors: [  
      Colors.blue,  
      Colors.purple,  
    ],  
  ),  
  backgroundColor: Colors.grey.withOpacity(0.4),  
),
AnimatedProgressBar

AnimatedProgressBar is a ImplicitlyAnimatedWidget. It behaves like other flutter AnimatedFoo widgets. This animates value parameter changes for a given duration. Animation starts only when one (initial) value changes to other (final) value. See the example below.

It has several configurable parameters:

  • value - value widget animates to, need to be changed
  • duration - initial value to final value animation duration
  • width - indicator width, defaults to 200.0
  • height - indicator height, defaults to 10.0
  • color - solid indicator fill color
  • gradient - gradient fill, accepts Gradient class
  • backgroundColor - solid indicator background color, defaults to transparent
  • curve - animation curve, defaults to linear. For other curves check Curves
  • onEnd - callback to trigger additional actions (e.g. another animation) at the end of the current animation
AnimatedProgressBar(  
  value: full ? 1.0 : 0.0,  
  duration: const Duration(seconds: 3),  
  gradient: const LinearGradient(  
    colors: [  
      Colors.amber,  
      Colors.red,  
    ],  
  ),  
  backgroundColor: Colors.grey.withOpacity(0.4),  
),

For full demo check examples folder.

Animation demo

Additional information

For issues and animation ideas visit issues section on github homepage.

카테고리

소스 저장소

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