Skip to content

Commit

Permalink
Use existing theme styles for text and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuntu committed Oct 15, 2024
1 parent bc5042d commit 955fcc3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/app_center/lib/widgets/app_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ class AppCard extends StatelessWidget {

@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final appContent = [
AppIcon(iconUrl: iconUrl),
const SizedBox(width: 16, height: 16),
const SizedBox(width: kCardSpacing, height: kCardSpacing),
Expanded(
child: _AppCardBody(
title: title,
Expand All @@ -113,10 +114,7 @@ class AppCard extends StatelessWidget {
Center(
child: Text(
rating.toString(),
style: const TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.w500,
),
style: theme.textTheme.titleMedium,
),
),
const SizedBox(
Expand Down

0 comments on commit 955fcc3

Please sign in to comment.