fix layout #51

This commit is contained in:
otsmr 2025-03-27 18:12:57 +01:00
parent a0e3bdf16f
commit ad4482d590
3 changed files with 3 additions and 10 deletions

View file

@ -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(

View file

@ -20,12 +20,7 @@ Future initMediaStorage() async {
Future<Box> 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'))!);

View file

@ -345,7 +345,7 @@ class _MediaViewerViewState extends State<MediaViewerView> {
),
if (imageBytes != null)
Positioned(
bottom: 0,
bottom: 30,
left: 0,
right: 0,
child: Row(