The State Management Dilemma: BLoC vs. Provider in Modern Flutter Development
DOI:
https://doi.org/10.32628/CSEIT241051027Keywords:
BLoC, Provider, Stream Builder, Inherited Widge, Change Notifier, Change Notifier Provider, Redux, MobX, Riverpod, TriangulationAbstract
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
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
Issue
Section
License
Copyright (c) 2024 International Journal of Scientific Research in Computer Science, Engineering and Information Technology
This work is licensed under a Creative Commons Attribution 4.0 International License.