Skip to content

Commit 25e3095

Browse files
committed
feat(article): support linkItem; fix standings (Doohan...)
1 parent a5420eb commit 25e3095

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

lib/api/article_parts.dart

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,16 @@ class WidgetsList extends StatelessWidget {
322322
: element['contentType'] ==
323323
'atomPromotion'
324324
? Container()
325-
: UnsupportedWidget(
326-
element,
327-
article,
328-
),
325+
: element['contentType'] ==
326+
'linkItem'
327+
? Padding(
328+
padding: EdgeInsets.only(bottom: 15),
329+
child: TextParagraphRenderer("[__${element['fields']['title']}__](${element['fields']['webUrl']})"),
330+
)
331+
: UnsupportedWidget(
332+
element,
333+
article,
334+
),
329335

330336
// author
331337
if (article.authorDetails.isNotEmpty) AuthorDetails(article),

lib/api/formula1.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ class Formula1 {
653653
Driver(
654654
Convert().driverIdFromFormula1(detailsPath),
655655
element['positionNumber'] ?? c.toString(),
656-
element['racingNumber'],
656+
element['racingNumber'] ?? '',
657657
element['driverFirstName'],
658658
element['driverLastName'],
659659
element['driverTLA'],

0 commit comments

Comments
 (0)