QuickAlert는 성공, 오류, 경고, 확인 및 로딩과 같은 사전 정의된 유형을 가진 애니메이션 효과가 있는 사용자 지정 가능한 알림 대화 상자를 빠르게 표시할 수 있도록 해주는 Flutter 패키지입니다. 최소한의 코드로 사용자 피드백을 쉽게 표시할 수 있으며, Android, iOS, Web, macOS, Windows, Linux 등 다양한 플랫폼을 지원합니다. 부드러운 애니메이션과 단일 메서드 호출을 통한 간편한 통합으로 즉각적인 시각적 피드백이 필요한 앱의 사용자 경험을 향상시키기에 이상적입니다. 고유한 사용 사례를 위한 커스텀 대화 상자도 지원됩니다.
사용 사례
폼 제출 후 성공 메시지 표시
잘못된 입력에 대한 오류 경고 표시
예/아니오 프롬프트로 작업 확인하기
비동기 작업 중 로딩 상태 표시
특정 UI 요구 사항에 맞는 사용자 정의 경고 디자인 만들기
주요 기능
사전 정의된 경고 유형 (성공, 오류, 경고 등)
시각적 매력용 애니메이션 전환
사용자 정의 대화 내용 지원
간단한 한 줄 호출
크로스 플랫폼 호환성
경량이며 통합이 쉬움
적합한 대상
초보자 플러터 개발자
빠른 사용자 피드백이 필요한 앱
양식 및 인증 흐름
자주 알림이 발생하는 인터랙티브 UI
빠른 구현을 우선시하는 프로젝트
고려 사항
기본 스타일링을 초과한 사용자 정의는 제한적
복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
매우 동적 또는 지속적인 대화 상자에 적합하지 않음
임시 알림에 가장 적합
효과를 위해 외부 애니메이션 라이브러리에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
An instantly ready, full-featured alerts for development on any platform with flutter. Enabling you to complete projects and deploy quickly. With QuickAlert, you can display animated alert dialogs such as success, error, warning, confirm, loading or even a custom dialog.
Key Features 🔮
Easy To Use
The alerts are very flexible and can be customized very easily. In QuickAlert, the QuickAlert.show() triggers the alert, which informs the user about the situations that need acknowledgment.
Predefined Beautiful Alert Styles
Make use of the predefined alerts are very beautiful and can also be customized very easily. In QuickAlert there are 6 different types of alerts, they are Success, Error, Warning, Info, Confirm & Loading.
Predefined Title & Actions
In QuickAlert all the 6 different types of alerts have predefined title & actions matching the alert type.
Super Customizable
Build your custom alert with power of QuickAlert using the flutter widgets.
Change Animation
Set your favorite animation by choosing from scale, rotate, slideInDown, slideInUp, slideInLeft, slideInRight.
Set Auto close
Auto close the alert by setting auto close duration.
Set Overlay Tap to Dismiss
Control the alert's Barrier Dismissible Property by setting barrierDismissible to true or false.
And Many More...
QuickAlert Demo
Getting Started 🔥
Start by adding the library as a dependency to your project.
dependencies:quickalert:<latestversion>
Run the command get the dependency
$ flutter pub get
Import it in your dart code, you can use
import'package:quickalert/quickalert.dart';
To display alert use QuickAlert.show() and define the type of alert.
QuickAlert.show(
context: context,
type: QuickAlertType.success,
); // That's it to display an alert, use other properties to customize.
Examples ⚡
There is a detailed example project in the example folder. You can directly run and play on it. There are code snippets from example project below.