Closed bw-flagship closed 5 months ago
People use tr()because it seems very convenient.
tr()
However, when changing the language, they are confused because the text does not update.
In my opinion, context.tr() should be the main usage pattern.
context.tr()
Static tr() only makes sense in scenarios where you don't have a BuildContext.
See #439 for examples.
People use
tr()
because it seems very convenient.However, when changing the language, they are confused because the text does not update.
In my opinion,
context.tr()
should be the main usage pattern.Static
tr()
only makes sense in scenarios where you don't have a BuildContext.See #439 for examples.