Giter VIP home page Giter VIP logo

flutter_animated_dialog's Introduction

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

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


default

fade

slideFromTop

slideFromBottom

slideFromBottomFade

slideFromLeft

slideFromLeftFade

slideFromRight

slideFromRightFade

scale

fadeScale

scaleRotate

rotate

rotate3D

size

sizeFade

generalDialog

listSingleSelect

listDialog

listMultipleSelect

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

flutter_animated_dialog's People

Contributors

jackjonson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_animated_dialog's Issues

Bug: override of theme data

hi!

i set my theme data in main.dart like this:

Widget buildApp(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
        statusBarColor: Colors.green[700],
        systemNavigationBarColor: Colors.green[700],
        statusBarBrightness: Brightness.light));
    return OverlaySupport.global(
        child: MaterialApp(
      theme: ThemeData(primarySwatch: Colors.green),
      home: HomePage(),
      navigatorKey: NavigationService.instance.navigationKey,
    ));
  }

so i set the appbar a bit darker then the default color...
Screenshot_20210420-190138

after i call flutter animated dialog popup, the background of the dialog gets a bit darker(gray?)
Screenshot_20210420-190202

and when i close it, it override the SystemChrome settings.. the appbar is now only green and not Colors.green[700] like before
Screenshot_20210420-190207

Group of multiple selects

Hey this is awesome plugin, thanks for it, do you plan to add suport to multiple select per groups?

Unable to set dialog size

When i wrap my widget with a Container, set width or height is not working,the dialog is always fullscreen
showAnimatedDialog( context: context, barrierDismissible: true, builder: (BuildContext context) { return Container( padding: EdgeInsets.all(10.0), width: 200.0, child: FlutterLogo( size: 150.0, ), ); }, animationType: DialogTransitionType.size, curve: Curves.linear, );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.