简体   繁体   English

如何在没有状态管理的情况下访问 Flutter 应用程序中的 50 多个 api?

[英]How to access 50+ apis in flutter app without state management?

I have been building full production app and that app can be build without statemanagement yes then how?我一直在构建完整的生产应用程序,并且可以在没有状态管理的情况下构建该应用程序,是的,那么如何?

I have been accessing over 30+ Rest apis and 50+ screens and which state management is good to go for apis datas implementation and any sample code for that?我已经访问了 30 多个 Rest api 和 50 多个屏幕,哪种状态管理适合用于 apis 数据实现和任何示例代码?

I have thinking of using Provider is it good?我有考虑使用 Provider 好不好?

In my experience, using BLoC is cleaner than Provider.根据我的经验,使用BLoC比使用 Provider 更干净。 You can simply have UI logic and API interaction decoupled, and this makes your app more manageable and maintainable.您可以简单地将 UI 逻辑和 API 交互解耦,这使您的应用程序更易于管理和维护。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM