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

패키지 상세v1.0.0

flutter_progress_button

flutter_progress_button은 무료이며 오픈소스(MIT 라이선스)인 Material Flutter 버튼으로, 다양한 버튼 스타일 요구 사항을 지원합니다. 사용하기 쉽고 사용자 정의가 가능하도록 설계되었습니다.

30일 다운로드
185
좋아요
22
Pub 점수
30

패키지 설치

flutter pub add flutter_progress_button

패키지 개요

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

flutter_progress_button은 사용자 정의가 가능한 오픈소스의 Material Design 버튼으로, Flutter용으로 설계되었습니다. 다양한 스타일과 진행 상태를 지원합니다. 단순성과 유연성을 고려하여 제작되었으며, 개발자가 버튼에 로딩 인디케이터, 성공 상태 및 사용자 정의 애니메이션을 쉽게 통합할 수 있도록 합니다. 이 패키지는 MIT 라이선스로 제공되며, 어떤 Flutter 프로젝트에도 원활하게 통합될 수 있도록 설계되었습니다. 폼 제출이나 데이터 가져오기와 같은 작업 중 시각적 피드백을 제공함으로써 사용자 경험을 향상시킵니다.

사용 사례

  • 로딩 상태와 함께 폼 제출
  • 사용자 인증 흐름
  • 데이터 저장 작업
  • 피드백이 있는 인터랙티브 UI 요소
  • 사용자 정의 버튼 전환

주요 기능

  • 로딩 및 성공 상태를 지원합니다
  • 높은 사용자 정의 가능한 외관
  • Flutter와의 간편한 통합
  • Material Design 준수
  • 상태 간의 애니메이션 전환

적합한 대상

  • 인터랙티브 폼을 개발하는 개발자
  • 일관된 버튼 스타일이 필요한 팀
  • 작업에 대한 시각적 피드백이 필요한 프로젝트
  • UI 중심 애플리케이션
  • 경량 컴포넌트를 찾는 오픈소스 기여자

고려 사항

  • 제한된 플랫폼별 사용자 지정
  • 내장된 비 Material 테마 지원 없음
  • 비동기 로직을 수동으로 처리해야 합니다
  • 복잡한 상태 기계에 최적화되지 않음
  • Flutter의 Material 패키지에 의존합니다

원본 README

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

flutter_progress_button

GitHub repo size GitHub code size in bytes GitHub top language GitHub issues GitHub license

flutter_progress_button is a free and open source (MIT license) Material Flutter Button that supports variety of buttons style demands. It is designed to be easy to use and customizable.

Get started

Depend on it

Add this to your package's pubspec.yaml file:

flutter_progress_button: '^1.0.0'
Install it

You can install packages from the command line:

$ flutter pub get

Alternatively, your editor might support flutter pub get.

Import it

Now in your Dart code, you can use:

import 'package:flutter_progress_button/flutter_progress_button.dart';

How to use

Add ProgressButton to your widget tree:

ProgressButton(
    defaultWidget: const Text('I am a button'),
    progressWidget: const CircularProgressIndicator(),
    width: 196,
    height: 40,
    onPressed: () async {
        int score = await Future.delayed(
            const Duration(milliseconds: 3000), () => 42);
        // After [onPressed], it will trigger animation running backwards, from end to beginning
        return () {
        // Optional returns is returning a VoidCallback that will be called
        // after the animation is stopped at the beginning.
        // A best practice would be to do time-consuming task in [onPressed],
        // and do page navigation in the returned VoidCallback.
        // So that user won't missed out the reverse animation.
        };
    },
),

More parameters:

ProgressButton({
    Key key,
    this.defaultWidget,
    this.progressWidget,
    this.onPressed,
    this.type = ProgressButtonType.Raised,
    this.color,
    this.width = double.infinity,
    this.height = 40.0,
    this.borderRadius = 2.0,
    this.animate = true,
}) : super(key: key);

Three types supported:

enum ProgressButtonType {
    Raised,
    Flat,
    Outline,
}

Source

Source code and example of this library can be found in git:

$ git clone https://github.com/jiangyang5157/flutter_progress_button.git

카테고리

소스 저장소

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

아직 데이터가 없습니다.