aissat / easy_localization

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

Recommend usage of context in readme #660

Closed bw-flagship closed 5 months ago

bw-flagship commented 5 months ago

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.