Chapter 6 - Flutter Hooks - Flutter State Management Course 💙

Опубликовано: 26 Февраль 2022
на канале: Vandad Nahavandipoor
14,549
391

Part of Flutter State Management Course playlist:    • Flutter State Management Course 💙  

Flutter Hooks package brings React Hooks into Flutter. If you're not familiar with React Hooks, I suggest that you read this post:   / making-sense-of-react-hooks  

The general idea of hooks in both Flutter Hooks and React Hooks is reusability of code. Imagine creating a StreamController or a TextEditingController in Flutter. You'd have to be very careful to make sure the controller is disposed of when your StatefulWidget is disposed. You don't have to worry about those resource managements with Flutter Hooks. Hooks use a new type of widget called HookWidget that brings with it a high scale of reusability when using hooks.

🐦 Twitter:   / vandadnp  
🔵 LinkedIn:   / vandadnp  
🤝 Want to support my work? https://buymeacoffee.com/vandad


Смотрите видео Chapter 6 - Flutter Hooks - Flutter State Management Course 💙 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Vandad Nahavandipoor 26 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 14,549 раз и оно понравилось 391 людям.