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

rounded_loading_button_plus 표지
패키지 상세v3.0.1

rounded_loading_button_plus

Flutter용 간단한 애니메이션 로딩 버튼 위젯 구현

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.7천
좋아요
79
Pub 점수
155

패키지 설치

flutter pub add rounded_loading_button_plus

패키지 개요

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

부드러운 전환과 사용자 정의 가능한 스타일을 갖춘 애니메이션 로딩 버튼 위젯을 제공하는 플러터 패키지입니다. 폼 제출이나 API 호출과 같은 작업 중에 로딩 상태를 시각적으로 나타내어 사용자 경험을 향상시킵니다. 원형 및 둥근 사각형 형태를 지원하며, 색상, 크기, 애니메이션 속도를 사용자 정의할 수 있습니다. 간단함과 성능을 위해 설계되어 다양한 플랫폼에서 어떤 플러터 앱에도 원활하게 통합됩니다.

사용 사례

  • 로딩 상태를 포함한 폼 제출
  • API 호출 트리거
  • 사용자 인증 흐름
  • 인터랙티브 UI 요소
  • 모바일 앱에서의 진행 상태 표시

주요 기능

  • 애니메이션 로딩 전환
  • 사용자 정의 가능한 버튼 모양
  • 사용자 지정 가능한 색상 및 크기
  • 크로스 플랫폼 지원
  • onPressed와의 간단한 통합
  • 부드러운 애니메이션 효과

적합한 대상

  • 인터랙티브 폼을 개발하는 개발자
  • 비동기 작업 중 시각적 피드백이 필요한 앱
  • 사용자 인터페이스 중심의 Flutter 프로젝트
  • 초보자에서 중급자까지의 Flutter 개발자
  • Android, iOS, Web, macOS, Windows 및 Linux를 대상으로 하는 프로젝트

고려 사항

  • 기본 사용을 위해 최소한의 설정만 필요합니다
  • 핵심 속성 외의 맞춤 설정이 제한적
  • 내장된 오류 처리 없음
  • 간단한 로딩 시나리오에 가장 적합
  • 복잡한 상태 관리에 적합하지 않음

원본 README

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

rounded_loading_button_plus

pub package build codecov style: effective dart License: MIT Awesome Flutter

RoundedLoadingButton is a Flutter package with a simple implementation of an animated loading button, complete with success and error animations.

Installation

Add this to your pubspec.yaml:

dependencies:
    rounded_loading_button_plus: ^2.0.8

Usage

Import
import 'package:rounded_loading_button_plus/rounded_loading_button_plus.dart';
Simple Implementation
final RoundedLoadingButtonController _btnController = RoundedLoadingButtonController();

void _doSomething() async {
    Timer(Duration(seconds: 3), () {
        _btnController.success();
    });
}

RoundedLoadingButton(
    child: Text('Tap me!', style: TextStyle(color: Colors.white)),
    controller: _btnController,
    onPressed: _doSomething,
)

The Rounded Loading Button has many configurable properties, including:

  • duration - The duration of the button animation
  • loaderSize - The size of the CircularProgressIndicator
  • animateOnTap - Whether to trigger the loading animation on the tap event
  • resetAfterDuration - Reset the animation after specified duration, defaults to 15 seconds
  • errorColor - The color of the button when it is in the error state
  • successColor - The color of the button when it is in the success state
  • successIcon - The icon for the success state
  • failedIcon - The icon for the failed state

Contributions

All contributions are welcome!

카테고리

의존성

의존성 목록 1 개

소스 저장소

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