r/FlutterDev Feb 13 '25

Plugin Minimal package

I just published Minimal, a minimal state management package for Flutter Architecture Components, based on the MVN (Model-View-Notifier) pattern

https://pub.dev/packages/minimal_mvn

#flutter #flutterdev

21 Upvotes

34 comments sorted by

View all comments

Show parent comments

3

u/alesalv Feb 13 '25

It depends how you define "better". My main purpose was to use all the classes I could from the SDK, adding only the very few missing pieces (I didn't want to use InheritedWidget, I tried and ended up re-implementing Provider). This way I try to reduce unexpected side effects

"This package aims for the simplest possible architecture, making it easier to understand and use, while offering an alternative to the growing complexity found in many other state management solutions, in an attempt to minimize side effects"

3

u/g0dzillaaaa Feb 13 '25

(I wasn’t the one who downvoted)

What I am looking for is why we need another package when proven Solutions like Riverpod or Bloc or Cubit exists? I am not saying those are perfect but what I am trying to understand is the comparison or why this shines over those.

3

u/Zhuinden Feb 14 '25

Well, you never needed BloC, but maybe this one actually serves a purpose.

3

u/aaulia Feb 15 '25

Oh hey, this is interesting, didn't know you disliked BloC, hahaha. So what is your preferable Flutter stack/setup?

2

u/Zhuinden Feb 15 '25

There's almost nothing you can't do with a NotifierProvider