FLUTTER ECOSYSTEM

Creativity-AI-Studio/flutter_animated_dialog

一个带有系列精美动画的新 Flutter 对话框,包括滑动、淡入淡出、旋转、缩放、3D 旋转等动画。

flutter_animated_dialog 项目封面
Stars
23
Forks
51
最近推送(UTC)
2024年8月18日
项目状态
未归档
Creativity-AI-Studio GitHub avatar
语言DartObjective-CJava

技术话题

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 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