From e2d4bfb1dbe76182a7f770df9574eb44357c9a34 Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 3 Jun 2025 15:46:14 +0200 Subject: [PATCH] 1.0.20+20 version bump --- lib/mediagrid.dart | 2 +- lib/screens/detailview.dart | 9 +++++---- pubspec.yaml | 5 ++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/mediagrid.dart b/lib/mediagrid.dart index cbfe0a6..8d1d4fa 100644 --- a/lib/mediagrid.dart +++ b/lib/mediagrid.dart @@ -13,7 +13,7 @@ class MediaGrid extends StatefulWidget { class _MediaGridState extends State { final ScrollController _scrollController = ScrollController(); - final String _version = '1.0.17'; + final String _version = '1.0.20+20'; List mediaItems = []; bool isLoading = false; Timer? _debounceTimer; diff --git a/lib/screens/detailview.dart b/lib/screens/detailview.dart index 856e7c5..b91e47e 100644 --- a/lib/screens/detailview.dart +++ b/lib/screens/detailview.dart @@ -149,10 +149,11 @@ class _DetailViewState extends State { children: item.tags.map((tag) { return Chip( label: Text(tag.tag), - backgroundColor: { - 1: Colors.green, - 2: Colors.red - }[tag.id] ?? const Color(0xFF090909), + backgroundColor: switch (tag.id) { + 1 => Colors.green, + 2 => Colors.red, + _ => const Color(0xFF090909) + }, labelStyle: const TextStyle(color: Colors.white), ); }).toList(), diff --git a/pubspec.yaml b/pubspec.yaml index 2138364..62d76d2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,10 +16,9 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.17 +version: 1.0.20+20 environment: - #sdk: ^3.9.0-172.0.dev sdk: ^3.9.0-100.2.beta # Dependencies specify other packages that your package needs in order to work. @@ -31,7 +30,7 @@ environment: dependencies: flutter: sdk: flutter - http: ^1.4.0 # API-Anfragen + http: ^1.4.0 video_player: ^2.2.10 # The following adds the Cupertino Icons font to your application.