Flutter Web and Flutter Hooks | Using hooks in Flutter | Flutter Hooks
Автор: aseem wangoo
Загружено: 2020-06-20
Просмотров: 1874
Описание:
This video demonstrates how to use flutter hooks in Flutter Web, and displays my tutorial suggestion form (hooks), feel free to suggest me tutorials!!
*Flutter Web and Flutter Hooks | Using hooks in Flutter *
Hooks are a new kind of object that manages a Widget life-cycles. They exist for one reason: increase the code-sharing between widgets and as a complete replacement for StatefulWidget.
As per the documentation, StatefulWidget suffers from a problem, it is very difficult to reuse the logic of initState or dispose.
Instead of extending the child with StatefulWidget, we extend with HookWidget, A [Widget] that can use [Hook]. Its usage is very similar to [StatelessWidget]. [HookWidget] does not have any life-cycle and implements only a [build] method. The difference is that it can use [Hook], which allows [HookWidget] to store mutable data without implementing a [State].
URL: https://fir-signin-4477d.firebaseapp.com
Website: https://flatteredwithflutter.com/flut...
DevTo: https://dev.to/aseemwangoo/flutter-we...
Medium: / flutter-web-and-flutter-hooks
Source Code: https://github.com/AseemWangoo/experi...
In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo
#StayHome and #flutterWithMe #flatteredwithflutter
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: