Making generic widgets (The Boring Flutter Development Show, Ep. 58)

74 Просмотры
Издатель
In this episode of The Boring Flutter Development Show, Khanh and Craig continue the changes made in Khanh’s MyDash app from episode 57 by adding generic types to the OptionsPicker widget.

Chapters:
0:00 Introduction
0:40 On the last episode of the Boring Show…
2:08 Renaming and relocating widgets
4:39 Thanks Craig for introducing me to barrel files!
5:21 Preparation for generic widgets
7:15 What are generics?
9:13 More renaming
13:46 Generic widget
20:44 Using the generic widget
23:30 Adding a Color Picker
29:50 Creating special types
29:27 The UI of our dreams
35:00 Creating a barrel file
36:00 Using our special type (ProductColor)
38:32 COMMAND+Z!!!
41:40 Voila! A color picker!
43:30 Displaying custom colors
1:00:45 Conclusion

Resources:
Get started with Flutter → https://flutter.dev
Episode 57 → https://goo.gle/3m0WhTe

Watch more episodes of the Boring Show here → https://goo.gle/BoringFlutterShow
Subscribe to the Flutter channel → https://goo.gle/FlutterYT

#Flutter #BoringShow #Developer
Категория
Язык программирования Dart
Комментариев нет.