flutter_progress_button은 사용자 정의가 가능한 오픈소스의 Material Design 버튼으로, Flutter용으로 설계되었습니다. 다양한 스타일과 진행 상태를 지원합니다. 단순성과 유연성을 고려하여 제작되었으며, 개발자가 버튼에 로딩 인디케이터, 성공 상태 및 사용자 정의 애니메이션을 쉽게 통합할 수 있도록 합니다. 이 패키지는 MIT 라이선스로 제공되며, 어떤 Flutter 프로젝트에도 원활하게 통합될 수 있도록 설계되었습니다. 폼 제출이나 데이터 가져오기와 같은 작업 중 시각적 피드백을 제공함으로써 사용자 경험을 향상시킵니다.
사용 사례
로딩 상태와 함께 폼 제출
사용자 인증 흐름
데이터 저장 작업
피드백이 있는 인터랙티브 UI 요소
사용자 정의 버튼 전환
주요 기능
로딩 및 성공 상태를 지원합니다
높은 사용자 정의 가능한 외관
Flutter와의 간편한 통합
Material Design 준수
상태 간의 애니메이션 전환
적합한 대상
인터랙티브 폼을 개발하는 개발자
일관된 버튼 스타일이 필요한 팀
작업에 대한 시각적 피드백이 필요한 프로젝트
UI 중심 애플리케이션
경량 컴포넌트를 찾는 오픈소스 기여자
고려 사항
제한된 플랫폼별 사용자 지정
내장된 비 Material 테마 지원 없음
비동기 로직을 수동으로 처리해야 합니다
복잡한 상태 기계에 최적화되지 않음
Flutter의 Material 패키지에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
flutter_progress_button
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.
ProgressButton(
defaultWidget: constText('I am a button'),
progressWidget: constCircularProgressIndicator(),
width: 196,
height: 40,
onPressed: () async {
int score = awaitFuture.delayed(
constDuration(milliseconds: 3000), () => 42);
// After [onPressed], it will trigger animation running backwards, from end to beginningreturn () {
// 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.
};
},
),