The State Management Dilemma: BLoC vs. Provider in Modern Flutter Development

Authors

  • Sanghmitra Project Scientist, Remote Sensing Applications Centre-UP, Lucknow. Uttar Pradesh, India Author

DOI:

https://doi.org/10.32628/CSEIT241051027

Keywords:

BLoC, Provider, Stream Builder, Inherited Widge, Change Notifier, Change Notifier Provider, Redux, MobX, Riverpod, Triangulation

Abstract

State management is a critical aspect of Flutter application development, directly impacting the efficiency, maintainability and scalability of mobile applications. Among the various state management solutions available in Flutter, BLoC (Business Logic Component) and Provider have emerged as two of the most prominent and widely adopted patterns. This paper presents a comprehensive comparison between BLoC and Provider, analyzing their distinct approaches to managing states, their suitability for different types of applications and their respective strengths and weaknesses. Through an in-depth examination of criteria such as ease of use, learning curve, performance, scalability and community support, this study aims to guide developers in choosing the most appropriate state management solution for their specific project needs. The findings of this research highlight the contexts in which each pattern excels, offering valuable insights for both novice and experienced Flutter developers.

Downloads

Download data is not yet available.

References

Singh, Mohit (2023, October 19). How to Use Flutter BLoC Architecture: To Build High-Performance App? RipenApps. Retrieved September 6, 2024, from https://ripenapps.com/blog/how-to-use-flutter-bloc-architecture-to-build-high-performance-apps/

Jat, R. (2024, March 10). Flutter Provider Interview Questions and answers - Radheyshyam Jat - Medium. Medium. https://medium.com/@radheyjat/flutter-provider-interview-questions-and-answers-a2ce23661f59

A Closer Look at React Mobx State Tree. (n.d.). https://www.dhiwise.com/post/the-ultimate-guide-to-getting-started-with-react-mobx-state-tree

Nam, D., Horvath, A., Macvean, A., & Myers, B. (2019). MARBLE: Mining for Boilerplate Code to Identify API Usability Problems. https://cmustrudel.github.io/papers/ase19marble.pdf DOI: https://doi.org/10.1109/ASE.2019.00063

B. Nemade, N. Phadnis, A. Desai, and K. K. Mungekar, "Enhancing connectivity and intelligence through embedded Internet of Things devices," ICTACT Journal on Microelectronics, vol. 9, no. 4, pp. 1670-1674, Jan. 2024, doi: 10.21917/ijme.2024.0289.

Upgrading Flutter. (n.d.). https://docs.flutter.dev/release/upgrade

List of state management approaches. (n.d.). Flutter. https://docs.flutter.dev/data-and-backend/state-mgmt/options.

Ahmad, V. (2023, January 12). Flutter State Management BLoC VS Provider - Victor Ahmad - Medium. Medium. https://medium.com/@Victor.Ahmad/bloc-vs-provider-flutter-state-management-a-detailed-comparison-5a932e9033dd

Nayak, S. K. (2024, April 3). Understanding the Differences Between Provider and Bloc State Management in Flutter with Examples. Medium. https://shivamkumarnayak.medium.com/understanding-the-differences-between-provider-and-bloc-state-management-in-flutter-with-examples-d57dd6d2fc0b

P, K., & Akshay. (2024, February 19). BLoC vs Provider: Choosing the Right Flutter State Management. Mindbowser. https://www.mindbowser.com/flutter-state-management-bloc-vs-provider/provider | Flutter package. (n.d.). Dart Packages. https://pub.dev/packages/provider.

Downloads

Published

06-10-2024

Issue

Section

Research Articles

How to Cite

[1]
Sanghmitra, “The State Management Dilemma: BLoC vs. Provider in Modern Flutter Development”, Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol, vol. 10, no. 5, pp. 326–336, Oct. 2024, doi: 10.32628/CSEIT241051027.

Similar Articles

1-10 of 19

You may also start an advanced similarity search for this article.