refactor: make install as non root default.

This commit is contained in:
Aunali321 2022-09-09 18:47:30 +05:30
parent f55ec6a941
commit fe13234faa

View File

@ -105,10 +105,10 @@ class InstallerView extends StatelessWidget {
visible: !model.isInstalled, visible: !model.isInstalled,
child: CustomMaterialButton( child: CustomMaterialButton(
isFilled: false, isFilled: false,
label: label: I18nText(
I18nText('installerView.installButton'), 'installerView.installRootButton'),
isExpanded: true, isExpanded: true,
onPressed: () => model.installResult(false), onPressed: () => model.installResult(true),
), ),
), ),
Visibility( Visibility(
@ -120,10 +120,10 @@ class InstallerView extends StatelessWidget {
Visibility( Visibility(
visible: !model.isInstalled, visible: !model.isInstalled,
child: CustomMaterialButton( child: CustomMaterialButton(
label: I18nText( label:
'installerView.installRootButton'), I18nText('installerView.installButton'),
isExpanded: true, isExpanded: true,
onPressed: () => model.installResult(true), onPressed: () => model.installResult(false),
), ),
), ),
], ],