This commit is contained in:
otsmr 2025-07-17 20:22:16 +02:00
parent aa7877dc64
commit 09e09b9613
2 changed files with 22 additions and 19 deletions

View file

@ -117,6 +117,8 @@ class _MediaViewerViewState extends State<MediaViewerView> {
setState(() {});
if (firstRun) {
loadCurrentMediaFile();
// ignore: parameter_assignments
firstRun = false;
}
});
}
@ -585,26 +587,28 @@ class _MediaViewerViewState extends State<MediaViewerView> {
],
),
),
if (showSendTextMessageInput)
Positioned(
top: 20,
left: 0,
right: 0,
child: Text(
getContactDisplayName(widget.contact),
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
shadows: [
Shadow(
color: Color.fromARGB(122, 0, 0, 0),
blurRadius: 5,
)
],
),
Positioned(
top: 10,
left: showSendTextMessageInput ? 0 : null,
right: showSendTextMessageInput ? 0 : 15,
child: Text(
getContactDisplayName(widget.contact),
textAlign: TextAlign.center,
style: TextStyle(
fontSize: showSendTextMessageInput ? 24 : 14,
fontWeight: FontWeight.bold,
color: showSendTextMessageInput
? null
: const Color.fromARGB(255, 126, 126, 126),
shadows: const [
Shadow(
color: Color.fromARGB(122, 0, 0, 0),
blurRadius: 5,
)
],
),
),
),
if (showSendTextMessageInput)
Positioned(
bottom: 0,

View file

@ -2,7 +2,6 @@ import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:twonly/src/utils/log.dart';
import 'package:twonly/src/utils/misc.dart';
import 'package:url_launcher/url_launcher.dart';
class BetterText extends StatelessWidget {