<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AlertDialog on Button Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/alertdialog-on-button/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/alertdialog-on-button/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Mon, 07 Jun 2021 12:35:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Flutter : How to dismiss an AlertDialog on Button?</title>
		<link>https://www.scmgalaxy.com/tutorials/flutter-how-to-dismiss-an-alertdialog-on-button/</link>
					<comments>https://www.scmgalaxy.com/tutorials/flutter-how-to-dismiss-an-alertdialog-on-button/#respond</comments>
		
		<dc:creator><![CDATA[Sushant K]]></dc:creator>
		<pubDate>Mon, 07 Jun 2021 12:23:35 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[AlertDialog]]></category>
		<category><![CDATA[AlertDialog on Button]]></category>
		<category><![CDATA[dismiss an AlertDialog]]></category>
		<category><![CDATA[flutter]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=6464</guid>

					<description><![CDATA[<p>Problem I&#8217;m showing an AlertDialog on my App, but when I click on no/cancel then AlertDialog doesn&#8217;t dismiss, it keep [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/flutter-how-to-dismiss-an-alertdialog-on-button/">Flutter : How to dismiss an AlertDialog on Button?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="has-text-align-center wp-block-heading"><span class="has-inline-color has-vivid-red-color">Problem</span></h2>



<p class="wp-block-paragraph">I&#8217;m showing an AlertDialog on my App, but when I click on no/cancel then AlertDialog doesn&#8217;t dismiss, it keep popping the route where I came from. I&#8217;ve used <code>Navigator.of(context).pop();</code> and <code>Navigator.pop(context, false);</code> but both are not working. </p>



<h2 class="has-text-align-center wp-block-heading"><span class="has-inline-color has-vivid-red-color">Solution</span></h2>



<p class="wp-block-paragraph">To Dismiss an AlertDialog Navigator.of(context).pop(); works but in my case below code worked.</p>



<p class="wp-block-paragraph"> <code>Navigator.of(context, rootNavigator: true).pop('dialog');</code></p>



<p class="wp-block-paragraph">That&#8217;s All.</p>



<p class="wp-block-paragraph">Thanks for reading.</p>



<p class="wp-block-paragraph">Keep Coding.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="300" height="300" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/Keep_coding.gif" alt="" class="wp-image-6350"/></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/flutter-how-to-dismiss-an-alertdialog-on-button/">Flutter : How to dismiss an AlertDialog on Button?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/flutter-how-to-dismiss-an-alertdialog-on-button/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
