Merge pull request 'Release v26.04.14.2 — News card title readability' (#22) from dev into main
This commit was merged in pull request #22.
This commit is contained in:
@@ -113,16 +113,20 @@ class NewsCard extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
// Title — tappable if URL present
|
// Title — tappable if URL present. Text stays in onSurface for
|
||||||
|
// contrast; the primary-colored underline carries the "this is a
|
||||||
|
// link" signal without tanking readability.
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: item.url.isNotEmpty ? _openUrl : null,
|
onTap: item.url.isNotEmpty ? _openUrl : null,
|
||||||
child: Text(
|
child: Text(
|
||||||
item.title,
|
item.title,
|
||||||
style: textTheme.bodyMedium?.copyWith(
|
style: textTheme.titleSmall?.copyWith(
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: item.url.isNotEmpty ? scheme.primary : scheme.onSurface,
|
color: scheme.onSurface,
|
||||||
|
height: 1.3,
|
||||||
decoration: item.url.isNotEmpty ? TextDecoration.underline : null,
|
decoration: item.url.isNotEmpty ? TextDecoration.underline : null,
|
||||||
decorationColor: scheme.primary,
|
decorationColor: scheme.primary.withValues(alpha: 0.7),
|
||||||
|
decorationThickness: 1.5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user