fix: root installation and foreground task and improve installer a bit

This commit is contained in:
Alberto Ponces
2022-08-15 03:31:36 +01:00
parent 8fd942a808
commit 5c71930ec1
10 changed files with 231 additions and 207 deletions

View File

@ -43,7 +43,7 @@ class PatchSelectorCard extends StatelessWidget {
const SizedBox(height: 10),
locator<AppSelectorViewModel>().selectedApp == null
? I18nText(
'patchSelectorCard.widgetFirstSubtitle',
'patchSelectorCard.widgetSubtitle',
child: Text(
'',
style: robotoTextStyle,
@ -51,24 +51,18 @@ class PatchSelectorCard extends StatelessWidget {
)
: locator<PatchesSelectorViewModel>().selectedPatches.isEmpty
? I18nText(
'patchSelectorCard.widgetSecondSubtitle',
'patchSelectorCard.widgetEmptySubtitle',
child: Text(
'',
style: robotoTextStyle,
),
)
: I18nText(
'patchSelectorCard.widgetThirdSubtitle',
translationParams: {
'selected': locator<PatchesSelectorViewModel>()
.selectedPatches
.length
.toString()
},
child: Text(
'',
style: robotoTextStyle,
),
: Text(
locator<PatchesSelectorViewModel>()
.selectedPatches
.map((e) => e.simpleName)
.toList()
.join('\n'),
),
],
),