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

giffy_dialog 표지
패키지 상세v2.3.0

giffy_dialog

빠르고 편리하며 아름다운 GIF 대화 상자와 하단 시트를 위한 플러터 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.2천
좋아요
605
Pub 점수
150

패키지 설치

flutter pub add giffy_dialog

패키지 개요

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

GiffyDialog는 GIF를 사용하여 애니메이션 효과가 있으며 시각적으로 매력적인 대화상자와 하단 시트를 제공하는 Flutter 패키지입니다. 개발자가 최소한의 코드로 몰입감 있는 사용자 상호작용을 빠르게 구현할 수 있도록 도와줍니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다. 사용자 정의 테마와 간단한 명령어를 통한 쉬운 통합으로, 재미있고 동적인 시각 피드백을 추가하여 앱의 UX를 향상시킵니다. 앱의 가이드 화면, 알림 또는 기념일 순간에 이상적입니다.

사용 사례

  • 온보딩 화면
  • 사용자 경고
  • 축하 팝업
  • 앱 가이드
  • 피드백 프롬프트

주요 기능

  • 애니메이션 GIF 지원
  • 사용자 지정 가능한 대화 상자
  • 크로스 플랫폼 호환성
  • 간단한 API
  • 바텀 시트 통합

적합한 대상

  • 모바일 앱 개발자
  • 사용자 경험 중심 프로젝트
  • 인터랙티브 UI 개선
  • 빠른 대화 상자 구현

고려 사항

  • 큰 GIF 파일은 성능에 영향을 줄 수 있습니다
  • 복잡한 레이아웃에 대한 맞춤 설정 제한
  • GIF 파일 최적화에 신중해야 합니다
  • 경량 대화에 적합하지 않음
  • 원격 GIF 로딩은 네트워크에 따라 다릅니다

원본 README

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

Giffy Dialog

Open Source Love License Dart CI CodeCov Version

A beautiful and custom alert dialog for flutter highly inspired from FancyAlertDialog-Android.

Show some ❤️ and star the repo to support the project

Live Demo: https://xsahil03x.github.io/giffy_dialog

An animated image of the GiffyDialog

Migration from v1 to v2

Please refer to the migration guide to migrate from v1 to v2.

Installation

Add the following to your pubspec.yaml and replace [version] with the latest version:

dependencies:
  giffy_dialog: ^[version]

Usage

Import the package:

import 'package:giffy_dialog/giffy_dialog.dart';

Use it like a dialog:

 showDialog(
   context: context,
   builder: (BuildContext context) {
     return GiffyDialog.image(
       Image.network(
         "https://raw.githubusercontent.com/Shashank02051997/FancyGifDialog-Android/master/GIF's/gif14.gif",
         height: 200,
         fit: BoxFit.cover,
       ),
       title: Text(
         'Image Animation',
         textAlign: TextAlign.center,
       ),
       content: Text(
         'This is a image animation dialog box. This library helps you easily create fancy giffy dialog.',
         textAlign: TextAlign.center,
       ),
       actions: [
         TextButton(
           onPressed: () => Navigator.pop(context, 'CANCEL'),
           child: const Text('CANCEL'),
         ),
         TextButton(
           onPressed: () => Navigator.pop(context, 'OK'),
           child: const Text('OK'),
         ),
       ],
     );
   },
 );

Or use it like a bottom sheet:

 showModalBottomSheet(
   context: context,
   clipBehavior: Clip.antiAlias,
   isScrollControlled: true,
   shape: RoundedRectangleBorder(
     borderRadius: BorderRadius.vertical(
       top: Radius.circular(useMaterial3 ? 32 : 4),
     ),
   ),
   builder: (BuildContext context) {
     return GiffyBottomSheet.image(
       Image.network(
         "https://raw.githubusercontent.com/Shashank02051997/FancyGifDialog-Android/master/GIF's/gif14.gif",
         height: 200,
         fit: BoxFit.cover,
       ),
       title: Text(
         'Image Animation',
         textAlign: TextAlign.center,
       ),
       content: Text(
         'This is a image animation bottom sheet. This library helps you easily create fancy giffy bottom sheet.',
         textAlign: TextAlign.center,
       ),
       actions: [
         TextButton(
           onPressed: () => Navigator.pop(context, 'CANCEL'),
           child: const Text('CANCEL'),
         ),
         TextButton(
           onPressed: () => Navigator.pop(context, 'OK'),
           child: const Text('OK'),
         ),
       ],
     );
   },
 );

Demo

Giffy Dialog Giffy BottomSheet
Material 2 Material 3 Material 2 Material 3
Image Giffy Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog
Rive Giffy Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog
Lottie Giffy Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog

Customization

The GiffyDialog widget provides several customization options, such as the dialog title, description, buttons, animations, and more. Please refer to the documentation for a complete list of available options.

Contributors

Thanks goes to these wonderful people (emoji key):


ArtemKolichenkov

📖 🤔

Alex Fierro

💻

Kasidech C.

💻

Jai Sachdeva

💬

Tarekk Mohamed Abdalla

💻

madhukesh_048

⚠️

dpedrinha

💻

Nate

💻 💡

Alex

💻

jritchie

💻

Saad Bin Shahid

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT License

카테고리

의존성

의존성 목록 2 개

소스 저장소

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