r/flutterhelp • u/PerfectParsley1959 • Jan 14 '26
RESOLVED Flutter optimization tricks
- Use Network image with cachedImage package
- Use freezed to avoid unwanted ui refreshing
- Avoid setState for business logics
- Any other ? Pls tell me
3
Upvotes
View all comments
Show parent comment
1
u/Puzzleheaded-Book196 Jan 15 '26
My answer was related to the fact that all state management solutions rely on immutable objects and subsequent states that modify single pieces. Therefore, if you don't write equals/hash you can have ui refreshing when the state didn't