Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

awesome dialogs

a new flutter package project for simple and awesome dialogs.

usage

to use this package, add awesome_dialog as a dependency in your pubspec.yaml file.
and add this import to your file.

import ‘package:awesome_dialog/awesome_dialog.dart’;

image

awesome dialogs

example

awesomedialog(context: context,
            dialogtype: dialogtype.info,
            animtype: animtype.bottomslide,
            tittle: 'dialog title',
            desc: 'dialog description here..................................................',
            btncancelonpress: () {},
            btnokonpress: () {}).show();

custom body

if the body is specified, then title and description will be ignored, this allows to further customize the dialogue.

awesomedialog(
            context: context,
            animtype: animtype.scale,
            dialogtype: dialogtype.info,
            body: center(child: text(
                    'if the body is specified, then title and description will be ignored, this allows to further customize the dialogue.',
                    style: textstyle(fontstyle: fontstyle.italic),
                  ),),
            tittle: 'this is ignored',
            desc:   'this is also ignored',
            btnokonpress: () {},
                 ).show();

custom button

to use custom buttons, just specify the buttonok or btncancel widget, all text parameters icon etc will be ignored.

dissmiss and callback

awesomedialog has ondissmisscallback() and can be dissmissed at any time using dissmiss() public method.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.