Material Dialogs 是一个 Flutter 包,旨在简化动画、时尚且可自定义的 Material Design 对话框的创建。它提供了一个易于使用的 API,用于构建符合所有平台 Material 指南的现代对话框界面。该包支持多种对话框类型,包括警告、确认和自定义对话框,具有流畅的动画和响应式布局。非常适合在面向 Android、iOS、Web、macOS、Windows 和 Linux 的应用中通过视觉吸引力强的弹窗增强用户交互。
MaterialDialog This Plugin will be useful to create simple, animated, and beautiful dialogs in your next Flutter app.
This library implements Airbnb's Lottie library to render After Effects animation in app.
Types of Dialog
MaterialDialog library provides two types of dialog i.e.
1. Material Dialog
2. Bottom Sheet Material Dialog
A normal material dialog which can have one or two buttons.
A Bottom Sheet material dialog which can have one or two buttons, is showed from bottom of device.
Implementation
Implementation of Material Dialog library is so easy. You can check /example directory for demo. Let's have look talk in details about it.
IconsOutlineButton and IconsButton are both buttons widgets provided by the plugin to make things easier for you read more, you can use any other buttons if you want.
ii. Bottom Sheet Material Dialog
Dialogs class will be used to create your dialog, use bottomMaterialDialog. Below is an example to show your dialog in the app.
it's better to make your animation to have the same background color as your dialog's background color, please use lottie editor to remove the background layer of your animation or make it same as your dialog background color before using it in the plugin.
Contribute
Let's develop with collaborations. We would love to have contributions by raising issues and opening PRs. Filing an issue before PR is must.
Credits
This library is built using following open-source libraries.