flutter_dialog 0.0.1 copy "flutter_dialog: ^0.0.1" to clipboard
flutter_dialog: ^0.0.1 copied to clipboard

A new Flutter for dialog

flutter_dialog #

A new Flutter for dialog

Getting Started #

To use this package import it as

 import 'package:flutter_dialog/flutter_dialog.dart';

To show the dialog inside an screen or widget wrap that with FlutterDialog widget and provide other parameters,

FlutterDialog(
        child: MyHomePage(title: 'Flutter Dialog Text'),
        blueAmount: 2.0,
        cancelable: true,
      ),

then inside My homepage get the FlutterDialog using

flutterDialog = context.ancestorWidgetOfExactType(FlutterDialog);

then show the dialog only with Title , Content and Action use

    void _showDialog() {
        flutterDialog.showDialog(
          title: Text(
            "Fluttr Dialog test",
            style: TextStyle(
              color: Colors.black,
              fontWeight: FontWeight.w600,
              fontSize: 22.0,
            ),
          ),
          content: Text(
            "Fluttr Dialog test",
            style: TextStyle(
              color: Colors.black,
              fontSize: 16.0,
            ),
          ),
        );
      }

To show a Custom dialog use this as

void _showCustomDialog() {
    flutterDialog.showCustomDialog(
      dialog: Row(
        children: <Widget>[
          Container(
            child: Column(
              mainAxisSize: MainAxisSize.min,
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  "Fluttr Dialog test",
                  style: TextStyle(
                    color: Colors.black,
                    fontWeight: FontWeight.w600,
                    fontSize: 22.0,
                  ),
                ),
                Text(
                  "Fluttr Dialog test",
                  style: TextStyle(
                    color: Colors.black,
                    fontSize: 16.0,
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
0
likes
20
pub points
49%
popularity

Publisher

unverified uploader

A new Flutter for dialog

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_dialog