title: Is there a way to create pop Modal using CupertinoAlertDialog in flutter?
body: <p>Functionality behind the app:</p>
  <ol>
  <li>The soccer ball in the upper right corner is a IconButton.</li>
  <li>Once the soccer IconButton is clicked, it creates a modal pop up in the middle of the screen and the outside of the modal box is blurred.</li>
  <li>The alert box shows heading &quot;Success!&quot; and then the content &quot;You are in the football universe!&quot;.</li>
  </ol>
  <p>I have included an image example of how it would look like once the the code is successful.</p>
  <p><a href="https://i.stack.imgur.com/NAskm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NAskm.png" alt="Flutter App" /></a></p>
  <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/cupertino.dart';
  import 'package:flutter/material.dart';
  import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Welcome to Flutter',
        home: Scaffold(
          appBar: AppBar(
            backgroundColor: Colors.deepPurple[200],
            actions: &lt;Widget&gt;[
              IconButton(
                icon: Icon(
                  MdiIcons.soccer,
                  color: Colors.grey[800],
                ),
                iconSize: 30,
                onPressed: () =&gt; {
                  CupertinoAlertDialog(
                    title: Text('Success!'),
                    content: Text('You are in the football universe!'),
                  ),
                },
              ),
            ],
          ),
          body: Center(
            child: Text('Hello World'),
          ),
        ),
      );
    }
  }
  </code></pre>
  <p>Issues:</p>
  <ol>
  <li>There is no error being displayed.</li>
  <li>The functionality for the modal being popped up is not being excuted.</li>
  </ol>
  <p>Things I have tried that were unsuccessful:</p>
  <ol>
  <li>I have tried to make another stateless widget and then included the name of that stateless widget inside appBar.</li>
  </ol>