扑:我应该使用哪个状态管理? [英] flutter: which state management should i use?

查看:56
本文介绍了扑:我应该使用哪个状态管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个允许用户创建,编辑,删除任务的应用程序.还包括通知和身份验证.

我尝试了 GetX ,但是我发现它并不稳定,我花了很多时间在寻找解决方案.我读到有关BLoC和MobX的信息,但是我从未使用过它们.

我想知道这次最好选择什么 Getx BLoC MobX 提供程序

预先感谢:_)

解决方案

根据我的说法,您应该使用provider.Provider提供了非常干净的体系结构.Provider将UI与逻辑很好地分离开来,并且不会在每次用户交互时都强制创建单独的状态,这意味着您不必编写大量的代码来处理简单的情况.

I'm currently working on a app that allow users to create, edit, delete tasks. also includes notifications and Authentication.

I tried GetX but I see that it's not stable and I'm spending much time searching for solutions. I read about BLoC and MobX but I never used them.

I want to know what's better to choose at this time Getx, BLoC, MobX or Provider

Thank in advance :_)

解决方案

According to me you should use provider. it is provide very clean architecture.Provider separates UI from logic well and does not force the creation of separate states with each user interaction, which means that often you do not have to write a large amount of code to handle a simple case.

这篇关于扑:我应该使用哪个状态管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆