fix(app-selector): remove direct use of strings (#944)

This commit is contained in:
Aabed Khan 2023-06-23 19:24:12 +05:45 committed by GitHub
parent 716a30bf7b
commit 941f618153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 62 additions and 85 deletions

View file

@ -73,15 +73,12 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
Row(
children: [
I18nText(
FlutterI18n.translate(
context,
'suggested',
translationParams: {
'version': widget.suggestedVersion.isEmpty
? 'All versions'
: 'v${widget.suggestedVersion}'
},
),
'suggested',
translationParams: {
'version' : widget.suggestedVersion.isEmpty
? FlutterI18n.translate(context, 'appSelectorCard.allVersions')
: 'v${widget.suggestedVersion}',
},
),
const SizedBox(width: 4),
Text(