flutter_app_dialog 1.0.0
flutter_app_dialog: ^1.0.0 copied to clipboard

Flutter app dialog is a simple package to build a custom dialog

flutter_app_dialog #

flutter app dialog A Flutter plugin for iOS and Android for simple and easy implement dialogs.

Installation #

Add flutter_app_dialog to your pubspec.yaml dependencies.

Example #

Basic Dialog #

 showDialog(
              context: context,
              builder: (BuildContext context) {
                return BaseDialogWidget(
                  child: BasicDialog(
                    tittle: 'tittle',
                    content: 'Your message',
                    tittleStyle: TextStyle(color: Colors.blue),
                    iconColor: Colors.red,
                    contentStyle: TextStyle(color: Colors.blue),
                  ),
                );
              });

Info Dialog #

            showDialog(
                context: context,
                builder: (BuildContext context) {
                  return BaseDialogWidget(
                    child: InfoDialog(
                      tittle: 'Info Dialog',
                      content: 'Your message',
                      tittleStyle: TextStyle(color: Colors.blue),
                      contentStyle: TextStyle(color: Colors.blue),
                    ),
                  );
                });

No Internet Connection Dialog #

            showDialog(
                context: context,
                builder: (BuildContext context) {
                  return BaseDialogWidget(
                    child: NoInternetConnectionDialog(
                      tittle: 'No internet connection',
                      content: 'Please check your connection status and try again',
                    ),
                  );
                });

Payment Dialog #

            showDialog(
                context: context,
                builder: (BuildContext context) {
                  return BaseDialogWidget(
                    child: PaymentDialog(
                      icon: Icons.check_circle_outline,
                      iconColor: Color.fromRGBO(126, 211, 33, 1),
                      iconSize: 50,
                      paymentStatus: 'SUCCESSFUL',
                      message: 'Thank you for the payment',
                      buttonName: 'OK',
                      onPressButton: () {
                        print('On Press!');
                      },
                    ),
                  );
                });

Rating Dialog #

            showDialog(
                context: context,
                builder: (BuildContext context) {
                  return BaseDialogWidget(
                    child: RatingDialog(
                      tittle: 'Enjoying MyApp',
                      tittleStyle: TextStyle(color: Color.fromRGBO(42, 42, 48, 1), fontWeight: FontWeight.bold),
                      description: 'Tap a start to rate it on the App Store.',
                      positiveRatingColor: Colors.blue,
                      negativeRatingColor: Colors.blue,
                      positiveButtonName: 'Submit',
                      negativeButtonName: 'Cancel',
                      onRatingSubmit: (value) {
                        debugLog('Rating value: $value');
                      },
                    ),
                  );
                });
8
likes
80
pub points
51%
popularity

Publisher

Unknown

Flutter app dialog is a simple package to build a custom dialog

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_screenutil, rxdart

More

Packages that depend on flutter_app_dialog