Skip to content

Commit

Permalink
Merge pull request #1564 from soumyaDghosh/main
Browse files Browse the repository at this point in the history
snap_page: Enhancement in the view
  • Loading branch information
BLKKKBVSIK authored Jan 15, 2024
2 parents 71dfb02 + 8c95a95 commit 9cdc3e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/app_center/lib/src/snapd/snap_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ class _SnapView extends ConsumerWidget {
label: l10n.snapPageLicenseLabel,
value: Text(snapModel.snap.license ?? ''),
),
(
label: l10n.snapPageVersionLabel,
value: Text(snapModel.snap.version),
),
(
label: l10n.snapPagePublishedLabel,
value: Text(
Expand Down Expand Up @@ -242,6 +246,7 @@ class _SnapView extends ConsumerWidget {
),
const SizedBox(height: kPagePadding),
MarkdownBody(
selectable: true,
onTapLink: (text, href, title) =>
launchUrlString(href!),
data: snapModel.snap.description,
Expand Down Expand Up @@ -366,6 +371,7 @@ class _SnapActionButtons extends ConsumerWidget {
return MenuItemButton(
child: IntrinsicWidth(
child: ListTile(
mouseCursor: SystemMouseCursors.click,
leading: action.icon != null
? Icon(
action.icon,
Expand Down
8 changes: 5 additions & 3 deletions packages/app_center/lib/src/widgets/app_info_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ class AppInfoBar extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(info.label),
DefaultTextStyle.merge(
style: const TextStyle(fontWeight: FontWeight.w500),
child: info.value,
SelectionArea(
child: DefaultTextStyle.merge(
style: const TextStyle(fontWeight: FontWeight.w500),
child: info.value,
),
),
],
),
Expand Down

0 comments on commit 9cdc3e5

Please sign in to comment.