[英]What to use ? Bloc or Moor in Flutter
So, I am trying to create a project where I am supposed to Call Web API and store the data in my local storage.所以,我正在尝试创建一个项目,我应该调用 Web API 并将数据存储在我的本地存储中。 Which should still have even if the app is killed and then re-opened.
即使应用程序被杀死然后重新打开,它仍然应该有。
FYI, data will be large and I will require a significant amount of space in the mobile device.仅供参考,数据会很大,我将需要移动设备中的大量空间。 i will be using firebase for login, the payment transaction and etc.
我将使用 firebase 进行登录、支付交易等。
this is my first answer, I hope to help you.这是我的第一个回答,希望对你有所帮助。
BloC & Moor are not synonyms, BloC is a reactive state management solution that allows you to better manage the interaction between logic and widgets in a reactive way. BloC和Moor不是同义词, BloC是一种反应式 state 管理解决方案,可让您以反应式方式更好地管理逻辑和小部件之间的交互。 Moor is a layer between sqlite and your application, it allows you to deal with sqlite using dart code by reacting to database changes through Stream s and Future s
Moor is a layer between sqlite and your application, it allows you to deal with sqlite using dart code by reacting to database changes through Stream s and Future s
I think you do not need to choose one of the two, if your application is going to handle large amounts of data and will grow exponentially I recommend that you implement both as they complement each other, by designing a SOLID structure.我认为您不需要选择两者之一,如果您的应用程序要处理大量数据并将成倍增长,我建议您通过设计一个SOLID结构来实现它们,因为它们相互补充。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.