Skip to content

Commit

Permalink
[news] support breaking news articles
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Dec 23, 2024
1 parent 9a25d4c commit dee5eb6
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 113 deletions.
3 changes: 3 additions & 0 deletions lib/api/formula1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Formula1 {
element['metaDescription'] ?? '',
DateTime.parse(element['updatedAt']),
imageUrl,
isBreaking: element['breaking'],
),
);
}
Expand Down Expand Up @@ -988,6 +989,7 @@ class News {
final String imageUrl;
final List? tags;
final Map? author;
final bool? isBreaking;

News(
this.newsId,
Expand All @@ -999,6 +1001,7 @@ class News {
this.imageUrl, {
this.tags,
this.author,
this.isBreaking,
});
}

Expand Down
Loading

0 comments on commit dee5eb6

Please sign in to comment.