Merge branch 'develop' into develop-groupedParticipants
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:developer';
|
||||||
|
|
||||||
import 'package:bubble/bubble.dart';
|
import 'package:bubble/bubble.dart';
|
||||||
import 'package:emoji_picker_flutter/emoji_picker_flutter.dart' as emojis;
|
import 'package:emoji_picker_flutter/emoji_picker_flutter.dart' as emojis;
|
||||||
import 'package:flowder/flowder.dart';
|
import 'package:flowder/flowder.dart';
|
||||||
@@ -323,7 +325,9 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadProgress = 1;
|
setState(() {
|
||||||
|
downloadProgress = 1;
|
||||||
|
});
|
||||||
downloadCore = FileElement.download(context, message.file!.path!, message.file!.name, (progress) {
|
downloadCore = FileElement.download(context, message.file!.path!, message.file!.name, (progress) {
|
||||||
if(progress > 1) {
|
if(progress > 1) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -408,7 +412,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
|||||||
bottom: 0,
|
bottom: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
child: LinearProgressIndicator(value: downloadProgress/100),
|
child: LinearProgressIndicator(value: downloadProgress == 1 ? null : downloadProgress/100),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
import 'dart:developer';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -38,7 +40,7 @@ class _MessageReactionsState extends State<MessageReactions> {
|
|||||||
future: data,
|
future: data,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if(snapshot.connectionState == ConnectionState.waiting) return const LoadingSpinner();
|
if(snapshot.connectionState == ConnectionState.waiting) return const LoadingSpinner();
|
||||||
if(snapshot.data == null) return const PlaceholderView(icon: Icons.search_off_outlined, text: 'Keine Reaktionen gefunden!');
|
if(snapshot.data!.data.isEmpty) return const PlaceholderView(icon: Icons.search_off_outlined, text: 'Keine Reaktionen gefunden!');
|
||||||
return ListView(
|
return ListView(
|
||||||
children: [
|
children: [
|
||||||
...snapshot.data!.data.entries.map<Widget>((entry) => ExpansionTile(
|
...snapshot.data!.data.entries.map<Widget>((entry) => ExpansionTile(
|
||||||
|
Reference in New Issue
Block a user