mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-21 18:03:45 +02:00
Add a less obvious touch target to highlights (#1694)
This commit is contained in:
@@ -171,15 +171,36 @@ class _AppPageState extends State<AppPage> {
|
|||||||
showError(e, context);
|
showError(e, context);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
color: settingsProvider.highlightTouchTargets
|
||||||
|
? (Theme.of(context).brightness ==
|
||||||
|
Brightness.light
|
||||||
|
? Theme.of(context).primaryColor
|
||||||
|
: Theme.of(context).primaryColorLight)
|
||||||
|
.withAlpha(20)
|
||||||
|
: null),
|
||||||
|
padding: settingsProvider.highlightTouchTargets
|
||||||
|
? const EdgeInsetsDirectional.fromSTEB(12, 6, 12, 6)
|
||||||
|
: const EdgeInsetsDirectional.fromSTEB(0, 6, 0, 6),
|
||||||
|
margin:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(0, 6, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
tr('downloadX', args: [tr('releaseAsset').toLowerCase()]),
|
tr('downloadX',
|
||||||
|
args: [tr('releaseAsset').toLowerCase()]),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: Theme.of(context).textTheme.labelSmall!.copyWith(
|
style:
|
||||||
|
Theme.of(context).textTheme.labelSmall!.copyWith(
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
fontStyle: FontStyle.italic,
|
fontStyle: FontStyle.italic,
|
||||||
),
|
),
|
||||||
),
|
))
|
||||||
),
|
],
|
||||||
|
)),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 48,
|
height: 48,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user