Skip to content

Commit

Permalink
[news] fix #107
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Jul 24, 2023
1 parent 2238d47 commit 6015077
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/Screens/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class TestScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const ArticleScreen(
'h9gfjCaDPbmMXq5Hc33DZ',
'yt pinned',
'4xvA88hJSPwGFej6JDpYQp',
'hero > img gallery',
true,
);
}
Expand Down
17 changes: 9 additions & 8 deletions lib/api/article_parts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,16 @@ class WidgetsList extends StatelessWidget {
article.articleHero['contentType'] == 'atomImageGallery'
? CarouselSlider(
items: [
article.articleHero['fields']['imageGallery'].forEach(
(element) => ImageRenderer(
for (var image in article.articleHero['fields']
['imageGallery'])
ImageRenderer(
useDataSaverMode
? element['renditions'] != null
? element['renditions']['2col-retina']
: element['url'] +
? image['renditions'] != null
? image['renditions']['2col-retina']
: image['url'] +
'.transform/3col-retina/image.jpg'
: element['url'],
: image['url'],
),
),
],
options: CarouselOptions(
viewportFraction: 1,
Expand Down Expand Up @@ -1177,7 +1177,8 @@ class WidgetsList extends StatelessWidget {
[
'tableContent'])
Row(
children: <Widget>[
children: <
Widget>[
for (Map driverDetails
in driverItem)
Container(
Expand Down

0 comments on commit 6015077

Please sign in to comment.