mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 18:28:40 +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:flutter/material.dart';
|
||||||
import 'package:lottie/lottie.dart';
|
import 'package:lottie/lottie.dart';
|
||||||
|
|
||||||
|
|
@ -39,7 +37,7 @@ class EmojiAnimation extends StatelessWidget {
|
||||||
// List of emojis and their corresponding Lottie file names
|
// List of emojis and their corresponding Lottie file names
|
||||||
|
|
||||||
// Check if the emoji has a corresponding Lottie animation
|
// 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]}");
|
return Lottie.asset("assets/animated_icons/${animatedIcons[emoji]}");
|
||||||
} else if (isEmoji(emoji)) {
|
} else if (isEmoji(emoji)) {
|
||||||
return Text(
|
return Text(
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,7 @@ Future initMediaStorage() async {
|
||||||
|
|
||||||
Future<Box> getMediaStorage() async {
|
Future<Box> getMediaStorage() async {
|
||||||
final storage = getSecureStorage();
|
final storage = getSecureStorage();
|
||||||
|
await initMediaStorage();
|
||||||
var containsEncryptionKey =
|
|
||||||
await storage.containsKey(key: 'hive_encryption_key');
|
|
||||||
if (!containsEncryptionKey) {
|
|
||||||
await initMediaStorage();
|
|
||||||
}
|
|
||||||
|
|
||||||
var encryptionKey =
|
var encryptionKey =
|
||||||
base64Url.decode((await storage.read(key: 'hive_encryption_key'))!);
|
base64Url.decode((await storage.read(key: 'hive_encryption_key'))!);
|
||||||
|
|
|
||||||
|
|
@ -345,7 +345,7 @@ class _MediaViewerViewState extends State<MediaViewerView> {
|
||||||
),
|
),
|
||||||
if (imageBytes != null)
|
if (imageBytes != null)
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: 0,
|
bottom: 30,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue