Make release notes tap target more obvious (#860)

This commit is contained in:
Imran Remtulla
2023-09-09 06:00:36 -04:00
parent b178b1d780
commit 94bd0774fb

View File

@@ -449,33 +449,40 @@ class AppsPageState extends State<AppsPage> {
: const SizedBox.shrink(), : const SizedBox.shrink(),
GestureDetector( GestureDetector(
onTap: showChangesFn, onTap: showChangesFn,
child: Column( child: Container(
mainAxisAlignment: MainAxisAlignment.center, decoration: BoxDecoration(
crossAxisAlignment: CrossAxisAlignment.end, borderRadius: BorderRadius.circular(12),
children: [ color: Theme.of(context).primaryColor.withAlpha(20)),
Row(mainAxisSize: MainAxisSize.min, children: [ padding: const EdgeInsets.fromLTRB(12, 0, 12, 0),
Container( child: Column(
constraints: BoxConstraints( mainAxisAlignment: MainAxisAlignment.center,
maxWidth: MediaQuery.of(context).size.width / 4), crossAxisAlignment: CrossAxisAlignment.end,
child: Text(getVersionText(index),
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.end)),
]),
Row(
mainAxisSize: MainAxisSize.min,
children: [ children: [
Text( Row(mainAxisSize: MainAxisSize.min, children: [
getChangesButtonString(index, showChangesFn != null), Container(
style: TextStyle( constraints: BoxConstraints(
fontStyle: FontStyle.italic, maxWidth:
decoration: showChangesFn != null MediaQuery.of(context).size.width / 4),
? TextDecoration.underline child: Text(getVersionText(index),
: TextDecoration.none), overflow: TextOverflow.ellipsis,
) textAlign: TextAlign.end)),
]),
Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
getChangesButtonString(
index, showChangesFn != null),
style: TextStyle(
fontStyle: FontStyle.italic,
decoration: showChangesFn != null
? TextDecoration.underline
: TextDecoration.none),
)
],
),
], ],
), )))
],
))
], ],
); );