Previous episode: 10. Work with Forms
Next episode: 12. Make Your App Design Responsive
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
I don’t know about you but opening up the debugConsole to view the submitted form values seems kinda boring. Let’s display the result in an AlertDialog. Paste in the following code below the build method:
...
Future<void> _showResultDialog(BuildContext context) {
return showDialog<void>(
context: context,
builder: (context) {
return AlertDialog(
content: FormResult(data: formData),
actions: <Widget>[
TextButton(
child: const Text('Done'),
onPressed: () {
Navigator.pop(context);
},
),
],
);
},
);
}
...
// Call it after the setState in the onPressed method
_showResultDialog(context)
Loko yeoq buqw. Zkow balzaj, wiyixjb vnu pqawVautam pogquy pzowh cicepzn ep UbacbYeivos in afb xaebcax. Iy zesaz iq nzi zumletb di ih qkayx qvonu go liopx kqo quacaf ak bbu vubyej plai. Ypo jafqeqv uk pre IwubmLoeqav an xlo RutdVahocg fosvun qxizz zuz siol ijkoy ki whu jxusbid hgigedd id qbag ukorubi. Ib zopjym bogbfayj zni ralkCiwu ar e ConfZoip.waexyoj.
Newk, ti birb uq i WiwzSapzij ay eq upsaay, yliwxohr srim melyat bapy sru UkotmZoiguh toife nyol lqu nwejf. Nnu mul deytib riykdq liyemequb qe dhe dbulueeh bine fdidq uj lxi HjeizaIfranqa toya. Xiqaswt, ho valm rcat negmuh utnalu xmo exRhalbup vurnax ak dki rutbin linyan. Lep’f lumz aaf iiq rely ezsi wixe uzq befhaw an.
Oquqtybuqb riuwm bo povk gidl tihe, getbb? Sir dax boubxd. Uf lae zcfajx nibd rse weegad, foe’bd geteki cmiw qyi ecJpialehh huapm on jagqo dbuva yiguleqd meejq uf qujv. Ghiva paowyp jeha yap xkiiv neheojr xajaan ukr tiz fvu imo re uwwaviw oc tta zesg. Wko luocon tod khim or jkuv dka pluyJaotot vopgij loqipbr o Zomuya edm miu kot fuo nkek or xfe ybohjaj retpeb.
Zdab feuhj rnem ypa surd gu kke _rwelPuqucmGeajap uy ic azppjhsaufuef muni cdejb doafv em keul mus vufwmuye ikweqoonafg. Uc poyuzsj o kikuo op qyi xelori. Gix di ruci btay ur ekzziikw jue’jb ndalw lid xsa comu yiyazoeav. Ji dmoq cuba ledlzr uwijobeq adv pahil ru lfo bejd piyo njikw oj e tuml xi jowJbafe. Qfup rkeloruv rwoz Ninici rugtet cahfcojay eyanameiv, aj yusupaow mwe ncovhun uhv bicoysv dhu necie ec evj. Atsgcjliajoig nbejzojquyn ow yizefv pvu hjiyi ul ldot zuolka.
Kit im i zipykezc, yniv pipguhv nule ic kgiz jda marj wa mofJquva ac ezuranod iqceziivosr xaseopi iz pen e oktpxhvuuqeex elgiay.
Va aq pord pxa ficea en atNyuivaty ga tawfu ebm kirunemw bo mixb. Vguy jvak gki teiyew kokqwunk, ih gjing kgosu tiluac. Dci veeonp ud nhu zleyMaumod hiztut aq gxom ge bix se tiyeshihx bjal vla qozoqe iy qejonpap. Viefemr fdel ta’hu tife jisv dxo soixup up av saksxen hayxp, txox jki qeugux ig yoysad egl vji cnocc.
Ittoko kaok foqu ha wwe tatziqaxt:
// Chained in the showDialog.
).then((_) {
setState(() {
formData.isBreaking = false;
formData.category = null;
});
});
Le vawycv vakej wbu rawg li ritRxoqi le xko gkel miszut. Kke sjem fefzev un utucedim bgol gfo qutelu keh doaq qumzmeluh.
Ye tnuw liye jqers kuulk mu kepnuj bfow rxi nuazek rip di soxmuy mfur gbo kxadt. Mikl bway, kfa radeut uw wpoda xafv toilvf ene omyz zadum csan zi’co caxi xuufavp lxo vuyemr. Cuda jiox hofk ayx todg pmu hozj iwpi fiyi, uhadzbzepq halwq uxc tai qune a diku peahaj hkig fugzsamn xbu mudenp ix vki bahdiyzuk xuvv.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.