fix: i18n minor add

This commit is contained in:
Alberto Ponces 2022-08-07 23:40:48 +01:00
parent a430537b6f
commit debc701b5c
2 changed files with 5 additions and 3 deletions

View File

@ -31,7 +31,8 @@
},
"appSelectorCard": {
"widgetTitle": "Select application",
"widgetSubtitle": "No application selected."
"widgetSubtitle": "No application selected.",
"noAppsLabel": "No apps found."
},
"patchSelectorCard": {
"widgetTitle": "Select patches",

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:installed_apps/app_info.dart';
import 'package:installed_apps/installed_apps.dart';
import 'package:revanced_manager/ui/widgets/installed_app_item.dart';
@ -66,8 +67,8 @@ class _AppSelectorViewState extends State<AppSelectorView> {
),
if (query.isNotEmpty)
apps.isEmpty
? const Center(
child: Text('No apps found'),
? Center(
child: I18nText('appSelectorCard.noAppsLabel'),
)
: Expanded(
child: ListView.builder(