FLUTTER ECOSYSTEM

Creativity-AI-Studio/flutter_animated_dialog

Um novo diálogo do Flutter com uma série de animações bonitas, como deslizar, desvanecer, girar, escalar e animações 3D.

Capa do projeto flutter_animated_dialog
Stars
23
Forks
51
Último push (UTC)
18 de ago. de 2024
Status do projeto
Ativo
Creativity-AI-Studio GitHub avatar
LinguagensDartObjective-CJava

Tópicos técnicos

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

flutter_animated_dialog

A new Flutter dialog with a series of beautiful animations, slide fade rotate size scale rotate3D animations. Dialog barrier include status bar at the top of screen, solved the problem of default dialog.

demo

https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/size.gif

Getting Started

dependencies:
  flutter_animated_dialog: ^1.2.0
import 'package:flutter_animated_dialog/flutter_animated_dialog.dart';
showAnimatedDialog(
  context: context,
  barrierDismissible: true,
  builder: (BuildContext context) {
    return ClassicGeneralDialogWidget(
      titleText: 'Title',
      contentText: 'content',
      onPositiveClick: () {
        Navigator.of(context).pop();
      },
      onNegativeClick: () {
        Navigator.of(context).pop();
      },
    );
  },
  animationType: DialogTransitionType.size,
  curve: Curves.fastOutSlowIn,
  duration: Duration(seconds: 1),
);

🚀 Roadmap

https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/default.gif
default
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/fade.gif
fade
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromTop.gif
slideFromTop
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromBottom.gif
slideFromBottom
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromBottomFade.gif
slideFromBottomFade
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromLeft.gif
slideFromLeft
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromLeftFade.gif
slideFromLeftFade
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromRight.gif
slideFromRight
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/slideFromRightFade.gif
slideFromRightFade
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/scale.gif
scale
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/fadeScale.gif
fadeScale
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/scaleRotate.gif
scaleRotate
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/rotate.gif
rotate
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/rotate3D.gif
rotate3D
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/size.gif
size
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/sizeFade.gif
sizeFade
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/generalDialog.gif
generalDialog
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/listSingleSelect.gif
listSingleSelect
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/listDialog.gif
listDialog
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/listMultipleSelect.gif
listMultipleSelect
https://raw.githubusercontent.com/JackJonson/flutter_animated_dialog/master/screenshots/customDialog.gif
customDialog
showAnimatedDialog param
property description
context BuildContext (Not Null)(required)
barrierDismissible bool (default false)
builder WidgetBuilder (Not Null)(required)
animationType DialogTransitionType (default DialogTransitionType.fade)
curve Curve (default Curves.linear)
duration Duration (default const Duration(milliseconds: 400))
alignment AlignmentGeometry (default Alignment.center)

Example

example