Flutter Hooks - Say Goodbye To Stateful Widget

preview_player
Показать описание
How to get rid of StatefulWidget boilerplate and make your code reusable.

Code:

Twitter: @Avalanche_tm9

#flutter #hooks #widget
Рекомендации по теме
Комментарии
Автор

For those are not aware - React used to have stateless statefull widgets (they call it components but it doesn't matter) as well as mixins for sharing logic. And they moved out of this concert to hooks because of the reasons mentioned on the video: less boilerplate code and sharing similar logic between widgets. So it's not "yet another boring concert which makes my life harder". No, it's a step of code design evolution. People already faced problems with the current Flutter way and solved them. Flutter community needs to go through the process though and realize the same things on their own.

alexeycherkashin
Автор

Great fireship vibes, clean and simple 👍

alvin
Автор

I remember how much of a time save react hooks were when they were introduced. It was so enormous that I might very well use this in my current project.

xerotolerant
Автор

Awesome bro! I've been working with flutter_hooks for a while now, and it's so pleasing to not have to convert to a Stateful widget for small things 🙏🏼

Hope to see more useful content like this! 😉

trevor
Автор

For the first time, I finally get to understand the usage of hooks package. Thanks bro.

ezeaguprincewill
Автор

I don't work with flutter, but youtube recommended me this video and I love small channels with tech content. Keep it up! <3

roulzhq
Автор

I like the stateful api (the flutter way) and I can dive into it by reading the flutter source code.

lijack
Автор

+1 in presentation, but one of the biggest issues I had learning Flutter was actually packages like this.

useState is a valueNotifier, HookWidget is a statelessWidget(sorta), HookBuilder is AnimatedBuilder.

Working with a whole other set of terminologies that already exist in the toolkit is just bloating and slowing developers down. Please consider this effect when you tote around a package as time saving.

dakunskye
Автор

Great introduction and overview to Flutter Hooks. Thanks!

JimGomes
Автор

My mind is blown away over useTextEditingController. It significantly reduces the code!

detaaditya
Автор

Good intro to hooks in flutter. I saw this package around but didn't think much of it, I work mostly in react and this would actually be so much easier for a react dev to pickup flutter. I really dislike flutter currently since it feels like react before hooks with all it's state management libraries and boilerplate oop.

ZackMitkin
Автор

That's nice, from React native background it helps a lot to me. Nice video. Thanks 🙏

theLaughRiot
Автор

This is a great intro! Thanks for the video! Can't wait for more.

prathameshsundaram
Автор

Ok found another amazing account... Looking forward to your next video.

swostikgautam
Автор

After watching this I (react dev) feel like I can give it a spin to flutter

priyangpatel
Автор

Bro im subscribing just because of this video

dennisbarzanoff
Автор

Great video amigo. Keep up the good work

chandansharma
Автор

Cool motivated and understandable video presentation. Thx a lot!

TheCaptSmile
Автор

now it's time to refactor the code of my project

binarnesia
Автор

I truly hate hooks from the bottom of my heart and soul. What a disgrace.

logandemir