From 94bd0774fb24bacddc45171e07908fa74e30c3d7 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 9 Sep 2023 06:00:36 -0400 Subject: [PATCH] Make release notes tap target more obvious (#860) --- lib/pages/apps.dart | 57 +++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 835be74..ebbc272 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -449,33 +449,40 @@ class AppsPageState extends State { : const SizedBox.shrink(), GestureDetector( onTap: showChangesFn, - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Row(mainAxisSize: MainAxisSize.min, children: [ - Container( - constraints: BoxConstraints( - maxWidth: MediaQuery.of(context).size.width / 4), - child: Text(getVersionText(index), - overflow: TextOverflow.ellipsis, - textAlign: TextAlign.end)), - ]), - Row( - mainAxisSize: MainAxisSize.min, + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(12), + color: Theme.of(context).primaryColor.withAlpha(20)), + padding: const EdgeInsets.fromLTRB(12, 0, 12, 0), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.end, children: [ - Text( - getChangesButtonString(index, showChangesFn != null), - style: TextStyle( - fontStyle: FontStyle.italic, - decoration: showChangesFn != null - ? TextDecoration.underline - : TextDecoration.none), - ) + Row(mainAxisSize: MainAxisSize.min, children: [ + Container( + constraints: BoxConstraints( + maxWidth: + MediaQuery.of(context).size.width / 4), + child: Text(getVersionText(index), + 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), + ) + ], + ), ], - ), - ], - )) + ))) ], );