I need to send a value as const, how do I do that?
EmojiPicker(
textEditingController: ..,
config: Config(
showRecentsTab: true,
noRecents: Text( // I need send const
Localization
.of(context)
.noRecent,
style: TextStyle(
fontSize: 14,
color: Theme
.of(context)
.brightness == Brightness.dark
? Colors.white
: Colors.black),
textAlign: TextAlign.center,
)
))
If I don't send the text widget as const it is constantly being refreshed but how can I send it as const in a multilingual application?