Write Less Code with Flutter Hooks | Learn Flutter Fast

  Рет қаралды 10,604

Marcus Ng

Marcus Ng

Күн бұрын

» Flutter courses, writeups, and source code on Launch Club 🧠
drp.li/Iq9Bk
www.launchclub.io/blog/flutte...
» Flutter Job Board 👋
drp.li/T9bLq
Stateful widgets are great and all, but they come with a lot of boilerplate code when dealing with controllers like TextEditingControllers, AnimationControllers, ScrollControllers, and more. Write fewer lines of code and improve code reuse throughout your application with flutter hooks.
» Resources 📂
Flutter Hooks Package: pub.dev/packages/flutter_hooks
» Remember to like, subscribe, comment, and share this video!🚨
kzbin.info?sub_conf...
» Socials📱
GitHub: github.com/MarcusNg
Twitter: / marcuslng
» Timestamps 🕒
0:00 Flutter Hooks Intro
0:12 Stateful Widget Form
1:00 Hook Widget Form
1:40 useEffect Hook
2:17 More hooks
» Music 🎶
Track: Lost Sky - Dreams [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Lost Sky - Dreams | Tr...
Free Download / Stream: ncs.io/DreamsYO
Joakim Karud ( / joakimkarud )
#Flutter #FlutterHooks #flutterdeveloper

Пікірлер: 29
@tananga1523
@tananga1523 Жыл бұрын
Omg!!! He is back !!!!!!!!!!!!!!!!
@ahmadamin248
@ahmadamin248 Жыл бұрын
Finally! Back (Marcus Ng), I started my Flutter journey by watching one of your UI video.
@deepmeyt
@deepmeyt Жыл бұрын
I recently started using flutter after 7 months of non stop web development. Thankfully our hero is back
@snickr6377
@snickr6377 Жыл бұрын
Another great one! Thanks!
@so7300
@so7300 Жыл бұрын
🔥🔥🔥great explanation!
@Explore_Montreal
@Explore_Montreal Жыл бұрын
Valuable information. Thank you
@exonent
@exonent Жыл бұрын
Welcome back!!
@mkhwanazicebo4448
@mkhwanazicebo4448 Жыл бұрын
Love this❤
@arwahsapi
@arwahsapi Жыл бұрын
Welcome back!
@binarnesia
@binarnesia Жыл бұрын
this is really cool, just like hooks in react
@naxcall
@naxcall Жыл бұрын
My maaan backkk ❤️
@h3w45
@h3w45 Жыл бұрын
Welcome back
@dolbysoundsofficial9323
@dolbysoundsofficial9323 Жыл бұрын
Great 😄
@antonyaz3506
@antonyaz3506 Жыл бұрын
How to find out the effectiveness of this approach in practice? Does anyone have a performance comparison? I don't use dispose and my apps are working fine
@MattCantSpeakIt
@MattCantSpeakIt 2 ай бұрын
Question: Why do you dispose of the text controllers, but not the formkey?
@Explore_Montreal
@Explore_Montreal Жыл бұрын
Please more video examples for flutter Hooks . + firebase . Thanks
@MWStudiooo
@MWStudiooo Жыл бұрын
Long time😮
@vladimirkraus1438
@vladimirkraus1438 Жыл бұрын
I am afraid that even after watching this video I still have no idea what hooks are... After reading some comments it seems that it makes sense only if you already have experience with React... But for those of us without experience with React, hooks are still a mystery after this video.
@sangamsingh6866
@sangamsingh6866 Жыл бұрын
cool
@lucasbastos8019
@lucasbastos8019 Жыл бұрын
React core team liked this! Hahaha
@kalupatrick6863
@kalupatrick6863 Жыл бұрын
React vibes😂
@GlennMartin
@GlennMartin Жыл бұрын
Bro what happened to your vids, been waiting for another desktop tutorial one.
@samatzhussipov1139
@samatzhussipov1139 Жыл бұрын
Two main problems with this package: * this is React concept, it's not Flutter way; * it breaks the convention of build being a pure function free from side-effects. Again, author tries to hide some "complexity" of pretty important Flutter concept: stateless vs stateful widgets and their lifecycles, bringing more confusion and some pitfalls.
@zzzyyyxxx
@zzzyyyxxx Жыл бұрын
There's a reason React moved from class components (what Flutter has today) to hooks. And it looks like with static metaprogramming, Flutter will get hooks too in the future.
@on_living_life
@on_living_life Жыл бұрын
@zzzyyyxxx Agree 💯, Great job Marcus
@stevenstone307
@stevenstone307 Жыл бұрын
Get React the fuck out of Flutter lmao
@zzzyyyxxx
@zzzyyyxxx Жыл бұрын
Nah hooks are great because like he said I don't have to deal with initializing and disposing every time. Don't dismiss something just because it's used in some other library.
@stevenstone307
@stevenstone307 Жыл бұрын
@@zzzyyyxxx hooks are awfully unreadable. I’d take a clear stateful approach with something like Bloc any day. Far easier to read, maintain, and trace where the logic is flowing rather than the magic boxes that React is bloated with.
@zzzyyyxxx
@zzzyyyxxx Жыл бұрын
@@stevenstone307 What do hooks have to do with global state management? I use Riverpod and they have an optional hooks package too, it works just fine. Talking about Bloc over hooks doesn't make any sense because they're not related, one is about encapsulating lifecycle actions and the other is global state management. Bloc even has an optional hooks package too if you want, so not sure what you're talking about.
Flutter Hooks - Say Goodbye To Stateful Widget
10:06
Avalanche
Рет қаралды 56 М.
Voici Comment trouver Des Clients En Tant Que Freelance
18:42
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 11 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 60 М.
7. Best Practices for your Flutter Project
14:35
Flutter Explained
Рет қаралды 28 М.
Avoid using StatefullWidget!
3:50
Codrut Erdei
Рет қаралды 7 М.
Flutter Flavors, App Icons, and Firebase Tutorial
9:39
Marcus Ng
Рет қаралды 49 М.
State Management Like A Pro - Flutter Riverpod
10:30
Robert Brunhage
Рет қаралды 75 М.
Flutter State Management - The Grand Tour
14:07
Fireship
Рет қаралды 237 М.
Flutter Provider - Advanced Firebase Data Management
11:08
Fireship
Рет қаралды 143 М.