aesthetic_dialogs 0.0.2
aesthetic_dialogs: ^0.0.2 copied to clipboard
This Flutter plugin allows you to display nice custom dialog boxes.
AestheticDialogs #
AestheticDialogs is inspired by Laravel Notify This Flutter plugin allows you to display nice custom dialog boxes. It is only available on Android at the moment.
[6.jpg]
Install #
Follow the instructions to integrate a package into your Flutter application. Make sure you also use the AppCompat themes.
How to use it? #
import 'package:AestheticDialogs/AestheticDialogs.dart';
...
AestheticDialogs.showDialog(
title: "Ma Boite",
message: "Bonjour",
cancelable: true,
darkMode: false,
dialogAnimation: DialogAnimation.IN_OUT,
dialogGravity: DialogGravity.CENTER,
dialogStyle: DialogStyle.EMOJI,
dialogType: DialogType.INFO,
duration: 5000);
The time is expressed in milliseconds and by default it is 3000ms. A more complete example can be found in the "example" folder of the Git repository.
Types of Dialog #
AestheticDialog At this moment, library provides eight types of dialog i.e.
1. Flash Dialog | 2. Connectify Dialog | 3. Toaster Dialog |
---|---|---|
![]() |
![]() |
![]() |
4. Emotion Dialog | 5. Drake Dialog | 6. Emoji Dialog |
![]() |
![]() |
![]() |
7. Rainbow Dialog | 8. Flat Dialog | |
![]() |
![]() |
Dark Mode #
AestheticDialog Also provides Dark Theme for some dialogs i.e.
1. Connectify Dark Dialog | 2. Toaster Dark Dialog | 3. Emoji Dark Dialog |
---|---|---|
![]() |
![]() |
![]() |
4. Flat Dark Dialog | LET's USE aesthetic Dialog ! | |
![]() |
Constants
DIALOG STYLE | DIALOG TYPE | DIALOG ANIMATION |
---|---|---|
RAINBOW FLAT CONNECTIFY TOASTER DRAKE EMOJI EMOTION |
SUCCESS ERROR WARNING INFO |
DEFAULT SLIDE_UP, SLIDE_DOWN SLIDE_LEFT, SLIDE_RIGHT SWIPE_LEFT, SWIPE_RIGHT IN_OUT CARD SHRINK SPLIT DIAGONAL SPIN WINDMILL FADE ZOOM |