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.
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.