diff --git a/lib/src/components/animate_icon.dart b/lib/src/components/animate_icon.dart index 4b14caa..f69815d 100644 --- a/lib/src/components/animate_icon.dart +++ b/lib/src/components/animate_icon.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:flutter/material.dart'; import 'package:lottie/lottie.dart'; @@ -39,7 +37,7 @@ class EmojiAnimation extends StatelessWidget { // List of emojis and their corresponding Lottie file names // Check if the emoji has a corresponding Lottie animation - if (animatedIcons.containsKey(emoji) && Platform.isAndroid) { + if (animatedIcons.containsKey(emoji)) { return Lottie.asset("assets/animated_icons/${animatedIcons[emoji]}"); } else if (isEmoji(emoji)) { return Text( diff --git a/lib/src/providers/hive.dart b/lib/src/providers/hive.dart index 3df1e17..5614732 100644 --- a/lib/src/providers/hive.dart +++ b/lib/src/providers/hive.dart @@ -20,12 +20,7 @@ Future initMediaStorage() async { Future getMediaStorage() async { final storage = getSecureStorage(); - - var containsEncryptionKey = - await storage.containsKey(key: 'hive_encryption_key'); - if (!containsEncryptionKey) { - await initMediaStorage(); - } + await initMediaStorage(); var encryptionKey = base64Url.decode((await storage.read(key: 'hive_encryption_key'))!); diff --git a/lib/src/views/chats/media_viewer_view.dart b/lib/src/views/chats/media_viewer_view.dart index bdb8c97..2340c4c 100644 --- a/lib/src/views/chats/media_viewer_view.dart +++ b/lib/src/views/chats/media_viewer_view.dart @@ -345,7 +345,7 @@ class _MediaViewerViewState extends State { ), if (imageBytes != null) Positioned( - bottom: 0, + bottom: 30, left: 0, right: 0, child: Row(