aissat / easy_localization

Easy and Fast internationalizing your Flutter Apps
https://pub.dev/packages/easy_localization
MIT License
908 stars 325 forks source link

Performance difference between tr() and tr(context:context) #633

Open cyb9701 opened 10 months ago

cyb9701 commented 10 months ago

I am using .tr(context: context) to change the widget immediately after changing the language.

What I'm curious about here is that if I enter the context parameter, it will be re-rendered when the state changes like setState, so I wonder if there is a waste of resources compared to using the general .tr() function.