feat(stream_chat_localizations): Initial implementation

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-07-01 20:26:01 +05:30
parent 9d4564151e
commit d3e9bdafbd
14 changed files with 626 additions and 5 deletions
@@ -103,6 +103,12 @@ extension BuildContextX on BuildContext {
// ignore: public_member_api_docs
double get textScaleFactor =>
MediaQuery.maybeOf(this)?.textScaleFactor ?? 1.0;
String translate({
required String key,
required String defaultValue,
}) =>
StreamChatLocalizations.of(this)?.translate(key) ?? defaultValue;
}
/// Extension on [BorderRadius]