Skip to content

Commit

Permalink
🔧 Switch apiv2 URL to api URL for images
Browse files Browse the repository at this point in the history
This commit changes the apiv2 URL for images in news tab
to the normal api. This change is long overdone.
  • Loading branch information
strifel committed Mar 29, 2022
1 parent dda2a92 commit e84a0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/news.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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}")
)
),
)
Expand Down

0 comments on commit e84a0f9

Please sign in to comment.