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

패키지 상세v1.0.2

xdialog

다이나믹한 구성, 여러 버튼 지원 및 부드러운 애니메이션을 갖춘 Flutter용으로 매우 사용자 정의 가능한 애니메이션 대화 상자 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
10
좋아요
1
Pub 점수
145

패키지 설치

flutter pub add xdialog

패키지 개요

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

xDialog는 Flutter용으로 고도로 사용자 정의 가능한 애니메이션 대화 상자 패키지로, 동적 구성과 부드러운 애니메이션을 제공합니다. 여러 버튼을 지원하여 알림, 확인 및 사용자 지정 대화 상자를 위한 유연한 UI 디자인을 가능하게 합니다. Android, iOS, Web, macOS, Windows, Linux 등 주요 플랫폼 전반에서 지원되며 일관된 사용자 경험을 보장합니다. 최소한의 설정으로 현대적이고 애니메이션 효과가 있는 대화 상자를 쉽게 만들 수 있도록 설계된 아름다운 재사용 가능한 솔루션입니다.

사용 사례

  • 경고 및 확인 표시
  • 사용자 지정 상호작용 대화 상자 만들기
  • 온보딩 또는 튜토리얼 팝업 구현
  • 여러 작업 버튼을 사용하여 사용자 입력 처리
  • 부드러운 애니메이션 전환을 통한 UX 향상

주요 기능

  • 높은 사용자 정의 가능한 외관
  • 다중 버튼 지원
  • 부드러운 애니메이션 전환
  • 동적 구성 옵션
  • 크로스 플랫폼 호환성
  • pub.dev를 통한 간편한 통합

적합한 대상

  • 풍부한 UI를 구축하는 플러터 개발자
  • 애니메이션 및 상호작용 대화상자를 필요로 하는 앱
  • 다양한 플랫폼 간에 일관된 대화 동작이 필요한 프로젝트
  • 개발자 생산성과 디자인 유연성을 우선시하는 팀

고려 사항

  • 복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
  • 애니메이션 성능은 저사양 기기에서 테스트해야 합니다
  • 사용자 정의는 번들 크기를 약간 증가시킬 수 있습니다
  • 다이얼로그 전용 사용 사례에 국한되며, 전체 화면 모달은 아님

원본 README

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

XDialog - Flutter Custom Dialog Package

A feature-rich, highly customizable dialog package for Flutter applications.

🚀 Features

  • 🎨 Fully Customizable UI – Modify colors, fonts, and layouts.
  • ⚡ Smooth Animations – Built-in transitions for a better UX.
  • 🖱️ Hover Effects – Interactive UI elements.
  • 🌈 Multiple Button Support – Add as many actions as needed.
  • 🎚️ Size Customization – Adjust width, height, and padding.
  • 🕒 Animation Control – Customize animation duration & style.
  • 🎮 Interactive Examples – Ready-to-use examples for quick setup.

📦 Installation

Add the dependency in your pubspec.yaml:

dependencies:
  xdialog: ^1.0.0

Then, run:

flutter pub get

🎯 Usage

📝 Basic Dialog

To display a simple confirmation dialog:

import 'package:flutter/material.dart';
import 'package:xdialog/xdialog.dart';

void showBasicDialog(BuildContext context) {
  XDialog.show(
    context: context,
    title: const Text('Confirmation'),
    message: const Text('Are you sure?'),
    positiveButtonText: 'Yes',
    negativeButtonText: 'No',
  );
}

🖼️ Dialog with Image
import 'package:flutter/material.dart';
import 'package:xdialog/xdialog.dart';

void showImageDialog(BuildContext context) {
  XDialog.show(
    context: context,
    title: const Text('Image Preview'),
    message: const Text('This is an example with an image.'),
    image: Image.network('https://via.placeholder.com/150'),
    positiveButtonText: 'OK',
  );
}

Basic Confirmation Dialog

🎛️ Customization

Adjust Dialog Size
XDialog.show(
  context: context,
  title: const Text('Custom Size'),
  message: const Text('You can control the size.'),
  width: 300,
  height: 200,
);
Customize Button Styles
XDialog.show(
  context: context,
  title: const Text('Styled Buttons'),
  message: const Text('Different button styles.'),
  positiveButtonText: 'Confirm',
  negativeButtonText: 'Cancel',
  positiveButtonStyle: ElevatedButton.styleFrom(backgroundColor: Colors.green),
  negativeButtonStyle: TextButton.styleFrom(foregroundColor: Colors.red),
);

🔥 Roadmap

  • [ ] Add dark mode support.
  • [ ] Support for icon-based buttons.
  • [ ] More transition effects.

📜 License

This project is licensed under the MIT License.


💡 Contributing

Feel free to submit pull requests or open issues for suggestions and improvements.

Happy coding! 🚀

카테고리

소스 저장소

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

아직 데이터가 없습니다.