#bloc #bestpractices
Effective BLoC pattern
The article is about 8 golden points that must be followed when working with BLoC:
π Every screen has its own BLoC
π Every BLoC must have a dispose() method
π Donβt use StatelessWidget with BLoC
π Override didChangeDependencies() to initialise BLoC
π Use RxDart only when dealing with complex logic
π Use PublishSubject over BehaviorSubject
π Proper use of BLoC Providers
Effective BLoC pattern
The article is about 8 golden points that must be followed when working with BLoC:
π Every screen has its own BLoC
π Every BLoC must have a dispose() method
π Donβt use StatelessWidget with BLoC
π Override didChangeDependencies() to initialise BLoC
π Use RxDart only when dealing with complex logic
π Use PublishSubject over BehaviorSubject
π Proper use of BLoC Providers
Medium
Effective BLoC pattern
Hey Folks, Its been so long I have written anything about Flutter. After writing two articles on BLoC pattern I was spending time doingβ¦
#performance #advanced #bestpractices
Performance best practices
Generally, Flutter applications are performant by default, so you only need to avoid common pitfalls to get excellent performance instead of needing to micro-optimize with complicated profiling tools. These best recommendations will help you write the most performant Flutter app possible:
π Controlling build() cost
π Apply effects only when needed
π Render grids and lists lazily
π Build and display frames in 16ms
Performance best practices
Generally, Flutter applications are performant by default, so you only need to avoid common pitfalls to get excellent performance instead of needing to micro-optimize with complicated profiling tools. These best recommendations will help you write the most performant Flutter app possible:
π Controlling build() cost
π Apply effects only when needed
π Render grids and lists lazily
π Build and display frames in 16ms
docs.flutter.dev
Performance
Evaluating the performance of your app from several angles.
#performance #bestpractices #advanced
Building performant Flutter widgets
This article is a part of series developed after the Flutter Material team worked on making the Flutter Gallery app more performant on the web. Some pro tips:
π Only build when necessary
π Only build what is necessary
π Check widget build counts
Building performant Flutter widgets
This article is a part of series developed after the Flutter Material team worked on making the Flutter Gallery app more performant on the web. Some pro tips:
π Only build when necessary
π Only build what is necessary
π Check widget build counts
Medium
Building performant Flutter widgets
This article is part of a series developed after the Flutter Material team worked on making the Flutter Gallery app more performant on theβ¦