forked from flutter/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcookbook.json
More file actions
1329 lines (1329 loc) · 37.4 KB
/
cookbook.json
File metadata and controls
1329 lines (1329 loc) · 37.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"samples": [
{
"name": "Animate a page route transition",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/page-route-animation.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/animation/page-route-animation.html",
"web": null,
"description": "A design language, such as Material, defines standard behaviors when\ntransitioning between routes (or screens). Sometimes, though, a custom\ntransition between screens can make an app more unique. To help,\nPageRouteBuilder provides an Animation object.\nThis Animation can be used with Tween and\nCurve objects to customize the transition animation.\nThis recipe shows how to transition between\nroutes by animating the new route into view from\nthe bottom of the screen.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"animation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Animate a widget using a physics simulation",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/physics-simulation.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/animation/physics-simulation.html",
"web": null,
"description": "Physics simulations can make app interactions feel realistic and interactive.\nFor example, you might want to animate a widget to act as if it were attached to\na spring or falling with gravity.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"animation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Animate the properties of a container",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/animated-container.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/animation/animated-container.html",
"web": null,
"description": "The Container class provides a convenient way\nto create a widget with specific properties:\nwidth, height, background color, padding, borders, and more.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"animation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Fade a widget in and out",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/opacity-animation.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/animation/opacity-animation.html",
"web": null,
"description": "UI developers often need to show and hide elements on screen.\nHowever, quickly popping elements on and off the screen can\nfeel jarring to end users. Instead,\nfade elements in and out with an opacity animation to create\na smooth experience.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"animation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Add a Drawer to a screen",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/drawer.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/drawer.html",
"web": null,
"description": "In apps that use Material Design,\nthere are two primary options for navigation: tabs and drawers.\nWhen there is insufficient space to support tabs,\ndrawers provide a handy alternative.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Display a snackbar",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/snackbars.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/snackbars.html",
"web": null,
"description": "It can be useful to briefly inform your users when certain actions\ntake place. For example, when a user swipes away a message in a list,\nyou might want to inform them that the message has been deleted.\nYou might even want to give them an option to undo the action.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Export fonts from a package",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/package-fonts.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/package-fonts.html",
"web": null,
"description": "Rather than declaring a font as part of an app,\nyou can declare a font as part of a separate package.\nThis is a convenient way to share the same font across\nseveral different projects,\nor for coders publishing their packages to pub.dev.\nThis recipe uses the following steps:",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Update the UI based on orientation",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/orientation.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/orientation.html",
"web": null,
"description": "In some situations,\nyou want to update the display of an app when the user\nrotates the screen from portrait mode to landscape mode. For example,\nthe app might show one item after the next in portrait mode,\nyet put those same items side-by-side in landscape mode.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Use a custom font",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/fonts.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/fonts.html",
"web": null,
"description": "Although Android and iOS offer high quality system fonts,\none of the most common requests from designers is for custom fonts.\nFor example, you might have a custom-built font from a designer,\nor perhaps you downloaded a font from Google Fonts.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Use themes to share colors and font styles",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/themes.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/themes.html",
"web": null,
"description": "To share colors and font styles throughout an app, use themes.\nYou can either define app-wide themes, or use Theme widgets\nthat define the colors and font styles for a particular part\nof the application. In fact,\napp-wide themes are just Theme widgets created at\nthe root of an app by the MaterialApp.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Work with tabs",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/tabs.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/design/tabs.html",
"web": null,
"description": "Working with tabs is a common pattern in apps that follow the\nMaterial Design guidelines.\nFlutter includes a convenient way to create tab layouts as part of\nthe material library.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"design"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Build a form with validation",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/validation.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/forms/validation.html",
"web": null,
"description": "Apps often require users to enter information into a text field.\nFor example, you might require users to log in with an email address\nand password combination.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"forms"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Create and style a text field",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/text-input.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/forms/text-input.html",
"web": null,
"description": "Text fields allow users to type text into an app.\nThey are used to build forms,\nsend messages, create search experiences, and more.\nIn this recipe, explore how to create and style text fields.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"forms"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Focus and text fields",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/focus.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/forms/focus.html",
"web": null,
"description": "When a text field is selected and accepting input,\nit is said to have “focus.”\nGenerally, users shift focus to a text field by tapping,\nand developers shift focus to a text field programmatically by\nusing the tools described in this recipe.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"forms"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Handle changes to a text field",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/text-field-changes.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/forms/text-field-changes.html",
"web": null,
"description": "In some cases, it’s useful to run a callback function every time the text\nin a text field changes. For example, you might want to build a search\nscreen with autocomplete functionality where you want to update the\nresults as the user types.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"forms"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Retrieve the value of a text field",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/retrieve-input.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/forms/retrieve-input.html",
"web": null,
"description": "In this recipe,\nlearn how to retrieve the text a user has entered into a text field\nusing the following steps:",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"forms"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Add Material touch ripples",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/ripples.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/gestures/ripples.html",
"web": null,
"description": "Widgets that follow the Material Design guidelines display\na ripple animation when tapped.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"gestures"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Handle taps",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/handling-taps.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/gestures/handling-taps.html",
"web": null,
"description": "You not only want to display information to users,\nyou want users to interact with your app.\nUse the GestureDetector widget to respond\nto fundamental actions, such as tapping and dragging.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"gestures"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Implement swipe to dismiss",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/dismissible.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/gestures/dismissible.html",
"web": null,
"description": "The “swipe to dismiss” pattern is common in many mobile apps.\nFor example, when writing an email app,\nyou might want to allow a user to swipe away\nemail messages to delete them from a list.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"gestures"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Display images from the internet",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/network-image.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/images/network-image.html",
"web": null,
"description": "Displaying images is fundamental for most mobile apps.\nFlutter provides the Image widget to\ndisplay different types of images.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"images"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Fade in images with a placeholder",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/fading-in-images.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/images/fading-in-images.html",
"web": null,
"description": "When displaying images using the default Image widget,\nyou might notice they simply pop onto the screen as they’re loaded.\nThis might feel visually jarring to your users.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"images"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Work with cached images",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/cached-images.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/images/cached-images.html",
"web": null,
"description": "In some cases, it’s handy to cache images as they’re downloaded from the\nweb, so they can be used offline. For this purpose,\nuse the cached_network_image package.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"images"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Create a grid list",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/grid-lists.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/lists/grid-lists.html",
"web": null,
"description": "In some cases, you might want to display your items as a grid rather than\na normal list of items that come one after the next.\nFor this task, use the GridView widget.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"lists"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Create a horizontal list",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/horizontal-list.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/lists/horizontal-list.html",
"web": null,
"description": "You might want to create a list that scrolls\nhorizontally rather than vertically.\nThe ListView widget supports horizontal lists.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"lists"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Create lists with different types of items",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/mixed-list.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/lists/mixed-list.html",
"web": null,
"description": "You might need to create lists that display different types of content.\nFor example, you might be working on a list that shows a heading\nfollowed by a few items related to the heading, followed by another heading,\nand so on.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"lists"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Place a floating app bar above a list",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/floating-app-bar.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/lists/floating-app-bar.html",
"web": null,
"description": "To make it easier for users to view a list of items,\nyou might want to hide the app bar as the user scrolls down the list.\nThis is especially true if your app displays a “tall”\napp bar that occupies a lot of vertical space.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"lists"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Use lists",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/basic-list.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/lists/basic-list.html",
"web": null,
"description": "Displaying lists of data is a fundamental pattern for mobile apps.\nFlutter includes the ListView\nwidget to make working with lists a breeze.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"lists"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Work with long lists",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/long-lists.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/lists/long-lists.html",
"web": null,
"description": "The standard ListView constructor works well\nfor small lists. To work with lists that contain\na large number of items, it’s best to use the\nListView.builder constructor.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"lists"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Report errors to a service",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/error-reporting.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/maintenance/error-reporting.html",
"web": null,
"description": "While one always tries to create apps that are free of bugs,\nthey’re sure to crop up from time to time.\nSince buggy apps lead to unhappy users and customers,\nit’s important to understand how often your users\nexperience bugs and where those bugs occur.\nThat way, you can prioritize the bugs with the\nhighest impact and work to fix them.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"maintenance"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Animate a widget across screens",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/hero-animations.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/navigation/hero-animations.html",
"web": null,
"description": "It’s often helpful to guide users through an app as they navigate from screen\nto screen. A common technique to lead users through an app is to animate a\nwidget from one screen to the next. This creates a visual anchor connecting\nthe two screens.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"navigation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Navigate to a new screen and back",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/navigation-basics.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/navigation/navigation-basics.html",
"web": null,
"description": "Most apps contain several screens for displaying different types of\ninformation.\nFor example, an app might have a screen that displays products.\nWhen the user taps the image of a product, a new screen displays\ndetails about the product.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"navigation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Navigate with named routes",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/named-routes.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/navigation/named-routes.html",
"web": null,
"description": "In the Navigate to a new screen and back recipe,\nyou learned how to navigate to a new screen by creating a new route and\npushing it to the Navigator.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"navigation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Pass arguments to a named route",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/navigate-with-arguments.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/navigation/navigate-with-arguments.html",
"web": null,
"description": "The Navigator provides the ability to navigate\nto a named route from any part of an app using\na common identifier.\nIn some cases, you might also need to pass arguments to a\nnamed route. For example, you might wish to navigate to the /user route and\npass information about the user to that route.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"navigation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Return data from a screen",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/returning-data.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/navigation/returning-data.html",
"web": null,
"description": "In some cases, you might want to return data from a new screen.\nFor example, say you push a new screen that presents two options to a user.\nWhen the user taps an option, you want to inform the first screen\nof the user’s selection so that it can act on that information.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"navigation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Send data to a new screen",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/passing-data.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/navigation/passing-data.html",
"web": null,
"description": "Often, you not only want to navigate to a new screen,\nbut also pass data to the screen as well.\nFor example, you might want to pass information about\nthe item that’s been tapped.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"navigation"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Fetch data from the internet",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/fetch-data.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/networking/fetch-data.html",
"web": null,
"description": "Fetching data from the internet is necessary for most apps.\nLuckily, Dart and Flutter provide tools, such as the\nhttp package, for this type of work.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"networking"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Make authenticated requests",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/authenticated-requests.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/networking/authenticated-requests.html",
"web": null,
"description": "To fetch data from many web services, you need to provide\nauthorization. There are many ways to do this, but perhaps the most common\nuses the Authorization HTTP header.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"networking"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Parse JSON in the background",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/background-parsing.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/networking/background-parsing.html",
"web": null,
"description": "By default, Dart apps do all of their work on a single thread.\nIn many cases, this model simplifies coding and is fast enough\nthat it does not result in poor app performance or stuttering animations,\noften called “jank.”",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"networking"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Send data to the internet",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/send-data.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/networking/send-data.html",
"web": null,
"description": "Sending data to the internet is necessary for most apps.\nThe http package has got it covered too.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"networking"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,
"channel": null
},
{
"name": "Work with WebSockets",
"author": "Flutter",
"screenshots": [
{
"url": "images/cookbook/web-sockets.png",
"alt": "Cookbook article"
}
],
"source": "https://flutter.dev/docs/cookbook/networking/web-sockets.html",
"web": null,
"description": "In addition to normal HTTP requests,\nyou can connect to servers using WebSockets.\nWebSockets allow for two-way communication with a server\nwithout polling.",
"difficulty": null,
"widgets": [],
"packages": [],
"tags": [
"cookbook",
"networking"
],
"platforms": [],
"links": [],
"type": "cookbook",
"date": null,