update news
This commit is contained in:
@@ -20,15 +20,15 @@ import 'package:worker/features/news/domain/entities/news_article.dart';
|
||||
/// - Category badge (primary blue)
|
||||
/// - Shadow and rounded corners
|
||||
class FeaturedNewsCard extends StatelessWidget {
|
||||
|
||||
/// Constructor
|
||||
const FeaturedNewsCard({super.key, required this.article, this.onTap});
|
||||
/// News article to display
|
||||
final NewsArticle article;
|
||||
|
||||
/// Callback when card is tapped
|
||||
final VoidCallback? onTap;
|
||||
|
||||
/// Constructor
|
||||
const FeaturedNewsCard({super.key, required this.article, this.onTap});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
@@ -126,17 +126,17 @@ class FeaturedNewsCard extends StatelessWidget {
|
||||
text: article.formattedDate,
|
||||
),
|
||||
|
||||
// Views
|
||||
_buildMetaItem(
|
||||
icon: Icons.visibility,
|
||||
text: '${article.formattedViewCount} lượt xem',
|
||||
),
|
||||
|
||||
// Reading time
|
||||
_buildMetaItem(
|
||||
icon: Icons.schedule,
|
||||
text: article.readingTimeText,
|
||||
),
|
||||
// // Views
|
||||
// _buildMetaItem(
|
||||
// icon: Icons.visibility,
|
||||
// text: '${article.formattedViewCount} lượt xem',
|
||||
// ),
|
||||
//
|
||||
// // Reading time
|
||||
// _buildMetaItem(
|
||||
// icon: Icons.schedule,
|
||||
// text: article.readingTimeText,
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -133,19 +133,19 @@ class NewsCard extends StatelessWidget {
|
||||
const SizedBox(width: 16),
|
||||
|
||||
// Views
|
||||
Icon(
|
||||
Icons.visibility,
|
||||
size: 12,
|
||||
color: const Color(0xFF64748B),
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
'${article.formattedViewCount} lượt xem',
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
color: Color(0xFF64748B),
|
||||
),
|
||||
),
|
||||
// Icon(
|
||||
// Icons.visibility,
|
||||
// size: 12,
|
||||
// color: const Color(0xFF64748B),
|
||||
// ),
|
||||
// const SizedBox(width: 4),
|
||||
// Text(
|
||||
// '${article.formattedViewCount} lượt xem',
|
||||
// style: const TextStyle(
|
||||
// fontSize: 12,
|
||||
// color: Color(0xFF64748B),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user