From 133213b4300fcf895b4c9a95af2ddb009634ae93 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 10 Sep 2024 23:52:10 +0800 Subject: [PATCH] :ambulance: Hot fix thumbnail duration issue --- lib/widgets/attachments/attachment_item.dart | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/widgets/attachments/attachment_item.dart b/lib/widgets/attachments/attachment_item.dart index fd744ce..18a3243 100644 --- a/lib/widgets/attachments/attachment_item.dart +++ b/lib/widgets/attachments/attachment_item.dart @@ -286,7 +286,8 @@ class _AttachmentItemVideoState extends State<_AttachmentItemVideo> { Text( Duration( milliseconds: - (widget.item.metadata?['duration'] ?? 0) * + (widget.item.metadata?['duration'] ?? 0) + .toInt() * 1000, ).toHumanReadableString(), style: GoogleFonts.robotoMono( diff --git a/pubspec.yaml b/pubspec.yaml index 312fc9a..6eaa6d1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: solian description: "The Solar Network App" publish_to: "none" -version: 1.2.1+33 +version: 1.2.1+34 environment: sdk: ">=3.3.4 <4.0.0"