Added in-app fileviewer for images and pdf files

This commit is contained in:
2023-06-18 18:15:49 +02:00
parent 6fda2f1078
commit 3d6e0cec0e
3 changed files with 77 additions and 9 deletions

View File

@ -235,7 +235,7 @@ class _ChatBubbleState extends State<ChatBubble> {
}
downloadProgress = 1;
downloadCore = FileElement.download(message.file!.path!, message.file!.name, (progress) {
downloadCore = FileElement.download(context, message.file!.path!, message.file!.name, (progress) {
if(progress > 1) {
setState(() {
downloadProgress = progress;