fix: Fix spacing of App Info buttons

This commit is contained in:
Alberto Ponces 2022-09-18 04:46:21 +01:00
parent 3aa80cacc0
commit 52e7d76c9d

View File

@ -64,8 +64,9 @@ class AppInfoView extends StatelessWidget {
CustomCard( CustomCard(
child: IntrinsicHeight( child: IntrinsicHeight(
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
!app.isRooted ? const Spacer() : Container(),
InkWell( InkWell(
onTap: () => model.openApp(app), onTap: () => model.openApp(app),
child: Column( child: Column(
@ -92,9 +93,11 @@ class AppInfoView extends StatelessWidget {
], ],
), ),
), ),
const Spacer(),
VerticalDivider( VerticalDivider(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
), ),
const Spacer(),
InkWell( InkWell(
onTap: () => model.showUninstallAlertDialog( onTap: () => model.showUninstallAlertDialog(
context, context,
@ -125,9 +128,11 @@ class AppInfoView extends StatelessWidget {
], ],
), ),
), ),
const Spacer(),
VerticalDivider( VerticalDivider(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
), ),
const Spacer(),
InkWell( InkWell(
onTap: () { onTap: () {
model.navigateToPatcher(app); model.navigateToPatcher(app);
@ -157,45 +162,49 @@ class AppInfoView extends StatelessWidget {
], ],
), ),
), ),
Visibility( app.isRooted ? const Spacer() : Container(),
visible: app.isRooted, app.isRooted
child: VerticalDivider( ? VerticalDivider(
color: Theme.of(context).canvasColor, color: Theme.of(context).canvasColor,
), )
), : Container(),
Visibility( app.isRooted ? const Spacer() : Container(),
visible: app.isRooted, app.isRooted
child: InkWell( ? InkWell(
onTap: () => model.showUninstallAlertDialog( onTap: () => model.showUninstallAlertDialog(
context, context,
app, app,
true, true,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(
Icons.settings_backup_restore_outlined,
color:
Theme.of(context).colorScheme.primary,
), ),
const SizedBox(height: 10), child: Column(
I18nText( mainAxisAlignment:
'appInfoView.unpatchButton', MainAxisAlignment.center,
child: Text( children: <Widget>[
'', Icon(
style: TextStyle( Icons
.settings_backup_restore_outlined,
color: Theme.of(context) color: Theme.of(context)
.colorScheme .colorScheme
.primary, .primary,
fontWeight: FontWeight.bold,
), ),
), const SizedBox(height: 10),
I18nText(
'appInfoView.unpatchButton',
child: Text(
'',
style: TextStyle(
color: Theme.of(context)
.colorScheme
.primary,
fontWeight: FontWeight.bold,
),
),
),
],
), ),
], )
), : Container(),
), !app.isRooted ? const Spacer() : Container(),
),
], ],
), ),
), ),