When faced with the task of coming up with a re-usable "Animated Gradient" widget, I faced one problem, a gradient isn't actually a widget - I can't go and make an AnimatedWidget that I can use inside a BoxDecoration in my UI somewhere. What I wanted was an actual gradient that simply took care of its own state management... not a widget, stateful or otherwise. Enter hooks Since discovering hooks for flutter [https://pub.dev/packages/flutter_hooks], I've become a huge fan, I'm making heavy use
More like this
- Library
Flutter Hooks
React hooks for Flutter. Hooks are a new kind of object that manages a Widget life-cycles. They are used to increase code sharing between widgets and as a complete replacement for StatefulWidget. -...
View on github.com
Article 5 min readFlutter Hooks, say goodbye to StatefulWidget and reduce boilerplate code
by
Jimmy Aumard
, on Flutter Pro
Jimmy Aumard
@jaumard 🇫🇷 France
Available for hire
Hello! I’m Jimmy Aumard . Senior Software Engineer specialized in mobile development. Experienced with all stages of the development cycle for mobile or web pro...
View Jimmy on Flutter ProFlutter hooks have been available for a while now but they didn't get a lot of love or visibility since then. I am wondering why, because…
Read on medium.com
Article 8 min readUnderstanding Flutter Hooks - Concept | Two examples
by Mustafa Tahir , on Flutter ProMustafa Tahir @mustafatahir 🇵🇰 PakistanAvailable for hire
Hi, I’m Mustafa Tahir from Karachi, Pakistan, a Computer Science graduate from Iqra University and a dedicated Flutter Engineer. Currently thriving at a dynamic...
View Mustafa on Flutter ProThe concept of Hook was first introduced in React Programming and then the same approach was grabbed by Flutter itself. You may be having a…
Read on medium.com