Posts

Showing posts from April, 2021

Plugin formz Helps Flutter Bloc Cubit to Make State

Image
One of my projects using latest flutter bloc with cubit. And I follow tutorial from flutter bloc web . And First time I learned it, it made me confused why so many classes do we have to implement it. Like Event class, Bloc class and State class. And The view itself have two things ui page and form page. It's like we have five classes to cover bloc and flutter ui. But After using it a little big long, I can see why we need to have many classes. First if your app is not big, it will make your code looks too much. Sorry I forget the word that can explain it better. But if your app is big and continue developing. It will be easir for you to maintain it. So what I'm gonna share this month, about the one of the core flutter bloc plugin that I used for my app. That is formz . It's not just used for flutter bloc only, you can combine it with other state management. So what's the advantage using this plugin is you can simplify and clarify the input form page like making validati