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

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 {