From e84a0f9e94b952170cc94fb74225ec3623113a08 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 29 Mar 2022 21:53:59 +0200 Subject: [PATCH] :wrench: Switch apiv2 URL to api URL for images This commit changes the apiv2 URL for images in news tab to the normal api. This change is long overdone. --- lib/components/news.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/news.dart b/lib/components/news.dart index 4b55baf..757f14d 100644 --- a/lib/components/news.dart +++ b/lib/components/news.dart @@ -4,6 +4,7 @@ import 'package:flutter_html/flutter_html.dart'; import 'package:url_launcher/url_launcher.dart'; import '../Views/News.dart'; import '../api/api_models.dart'; +import '../api/api_raw.dart' as api_raw; class ArticleCard extends StatelessWidget { ArticleCard(this.article); @@ -53,7 +54,7 @@ class ImageBox extends StatelessWidget { image: new DecorationImage( fit: BoxFit.fitWidth, alignment: FractionalOffset.center, - image: CachedNetworkImageProvider("https://apiv2.kag-langenfeld.de/files/${article.imageID}") + image: CachedNetworkImageProvider("${api_raw.API}files/${article.imageID}") ) ), )