animated_dialog_box 0.0.2 copy "animated_dialog_box: ^0.0.2" to clipboard
animated_dialog_box: ^0.0.2 copied to clipboard

A new Flutter package project. For dialog box.

animated_dialog_box #

A pure dart package for showing animated alert box.

Getting Started #

Alt Text

MaterialButton( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(40), ), color: Colors.white, child: Text('In Out Scale Dailog'), onPressed: () async { await animated_dialog_box.showInOutDailog( title: Center(child: Text("Hello")), // IF YOU WANT TO ADD context: context, firstButton: MaterialButton( // FIRST BUTTON IS REQUIRED shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(40), ), color: Colors.white, child: Text('Ok'), onPressed: () { Navigator.of(context).pop(); }, ), secondButton: MaterialButton( // OPTIONAL BUTTON shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(40), ), color: Colors.white, child: Text('Cancel'), onPressed: () { Navigator.of(context).pop(); }, ), icon: Icon(Icons.info_outline,color: Colors.red,), // IF YOU WANT TO ADD ICON yourWidget: Container( child: Text('This is my first package'), )); }, ),

      MaterialButton(
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(40),
        ),
        color: Colors.white,
        child: Text('Rotated Dailog'),
        onPressed: () async {
          await animated_dialog_box.showRotatedAlert(
              title: Center(child: Text("Hello")), // IF YOU WANT TO ADD
              context: context,
              firstButton: MaterialButton(
                // FIRST BUTTON IS REQUIRED
                shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(40),
                ),
                color: Colors.white,
                child: Text('Ok'),
                onPressed: () {
                  Navigator.of(context).pop();
                },
              ),
              secondButton: MaterialButton(
                // OPTIONAL BUTTON
                shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(40),
                ),
                color: Colors.white,
                child: Text('Cancel'),
                onPressed: () {
                  Navigator.of(context).pop();
                },
              ),
              icon: Icon(Icons.info_outline,color: Colors.red,), // IF YOU WANT TO ADD ICON
              yourWidget: Container(
                child: Text('This is my first package'),
              ));
        },
      ),
11
likes
20
pub points
74%
popularity

Publisher

unverified uploader

A new Flutter package project. For dialog box.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, vector_math

More

Packages that depend on animated_dialog_box