ShowDialog method

dynamic ShowDialog(
  1. Widget title,
  2. Widget content
)

Implementation

ShowDialog(
  Widget title,
  Widget content,
) {
  showDialog(
      context: this,
      builder: (context) => AlertDialog(
            title: title,
            content: content,
            actions: <Widget>[
              TextButton(
                onPressed: () {
                  Navigator.pop(context);
                },
                child: const Text('OK!'),
              )
            ],
          ));
}