fixed missing no reaction text

fixed loading indicator being delayed on file download
This commit is contained in:
2025-09-06 15:56:28 +02:00
parent 9177c30d6e
commit a6c16e41c2
2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import 'dart:developer';
import 'package:bubble/bubble.dart';
import 'package:emoji_picker_flutter/emoji_picker_flutter.dart' as emojis;
import 'package:flowder/flowder.dart';
@@ -323,7 +325,9 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
return;
}
downloadProgress = 1;
setState(() {
downloadProgress = 1;
});
downloadCore = FileElement.download(context, message.file!.path!, message.file!.name, (progress) {
if(progress > 1) {
setState(() {
@@ -408,7 +412,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
bottom: 0,
right: 0,
left: 0,
child: LinearProgressIndicator(value: downloadProgress/100),
child: LinearProgressIndicator(value: downloadProgress == 1 ? null : downloadProgress/100),
),
),
],