animated_dialog_box 0.0.2

Flutter Android iOS web

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'),
              ));
        },
      ),