<?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>Confirm Dialog Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/confirm-dialog/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/confirm-dialog/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Wed, 16 Mar 2022 05:43:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>How to Make a Confirm Dialog in Flutter</title>
		<link>https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/</link>
					<comments>https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 13:02:02 +0000</pubDate>
				<category><![CDATA[flutter]]></category>
		<category><![CDATA[Confirm Dialog]]></category>
		<category><![CDATA[Cupertino Confirm Dialog]]></category>
		<category><![CDATA[Material Confirm Dialog]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15558</guid>

					<description><![CDATA[<p>A confirm dialog is a dialog box that asks users to approve the requested operation. It usually appears with button pairs like Yes/No, OK/Cancel, Agree/Disagree. Confirm dialogs <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/">How to Make a Confirm Dialog in Flutter</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="362" height="636" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flutter-po.jpg" alt="" class="wp-image-15559" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flutter-po.jpg 362w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flutter-po-171x300.jpg 171w" sizes="(max-width: 362px) 100vw, 362px" /></figure>



<p>A confirm dialog is a dialog box that asks users to approve the requested operation. It usually appears with button pairs like Yes/No, OK/Cancel, Agree/Disagree. Confirm dialogs help prevent accidental actions such as deleting content, closing an account, leaving a page when the form content on that page has not been saved, etc.</p>



<p>This article shows you how to creat confirm dialogs in Flutter. We will go over 2 examples: the first one demonstrates a material confirm dialog and the second one displays a Cupertino (iOS-style) confirm dialog.</p>



<h2 class="wp-block-heading">Material Confirm Dialog</h2>



<p>If you are developing an app for both Android and iOS and doesn’t need an iOS-exclusive experience, using material is a good way to go.</p>



<h2 class="wp-block-heading">Preview</h2>



<p>Our sample app has a button and a red box. When the button is pressed, a confirm dialog will show up.</p>



<ul class="wp-block-list"><li>f the user select “Yes”, the box will be removed then the dialog will be closed. The button then becomes disable.</li><li>If the user select “No”, the dialog will be closed and nothing else happens.</li></ul>



<figure class="wp-block-video"><video height="506" style="aspect-ratio: 676 / 506;" width="676" controls src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/Flutter-material-confirm-dialog.mp4"></video></figure>



<h2 class="wp-block-heading">The code</h2>



<p>The complete code with explanations:</p>



<script src="https://gist.github.com/dharmu9898/b5d50876bcff37cf23fa3a5208635b3a.js"></script>



<h2 class="wp-block-heading">Cupertino Confirm Dialog</h2>



<h3 class="wp-block-heading">Preview</h3>



<figure class="wp-block-video"><video height="736" style="aspect-ratio: 1360 / 736;" width="1360" controls src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/bandicam-2021-09-30-18-24-54-664.mp4"></video></figure>



<h2 class="wp-block-heading">The code</h2>



<h3 class="wp-block-heading">Don’t forget to import the Cupertino library:</h3>



import &#8216;package:flutter/cupertino.dart&#8217;;



<h3 class="wp-block-heading">The full code for the xample:</h3>



<script src="https://gist.github.com/dharmu9898/cd4fe3aa3c9a4e9f1a0474a4638fdd4c.js"></script>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/">How to Make a Confirm Dialog in Flutter</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/Flutter-material-confirm-dialog.mp4" length="408559" type="video/mp4" />
<enclosure url="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/bandicam-2021-09-30-18-24-54-664.mp4" length="1201382" type="video/mp4" />

			</item>
	</channel>
</rss>
