mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
fix layout #51
This commit is contained in:
parent
a0e3bdf16f
commit
ad4482d590
3 changed files with 3 additions and 10 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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'))!);
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@ class _MediaViewerViewState extends State<MediaViewerView> {
|
|||
),
|
||||
if (imageBytes != null)
|
||||
Positioned(
|
||||
bottom: 0,
|
||||
bottom: 30,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Row(
|
||||
|
|
|
|||
Loading…
Reference in a new issue