title: flutter: How to close a giffy dialog
body: <p>How to close a <a href="https://stackoverflow.com/questions/72693541">NetworkGiffyDialog</a>?</p>
  <pre class="lang-dart prettyprint-override"><code>showDialog(
    context: context,
    builder: (_) =&gt; NetworkGiffyDialog(
      image: Image.asset('asset/gif/send.gif'),
      title: const Text('Send Money',
          textAlign: TextAlign.center,
          style: TextStyle(
              fontSize: 22.0,
              fontWeight: FontWeight.w600)),
      description:const Text('Are you sure you want to Send this Amount?',
        textAlign: TextAlign.center,
      ),
      entryAnimation: EntryAnimation.BOTTOM,
        onOkButtonPressed: () {
            Navigator.push(context, MaterialPageRoute(builder: (context) =&gt; const HomePage()));
            Fluttertoast.showToast(msg: &quot;Sent with Success&quot;);
        },
    ),
  );
  
  </code></pre>