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

View file

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