fix: Text scale factor in Linkify widgets

Signed-off-by: Krille <c.kussowski@famedly.com>
This commit is contained in:
Krille 2025-04-15 14:44:51 +02:00
commit 60fe90233b
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
14 changed files with 41 additions and 1 deletions

View file

@ -397,6 +397,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
const SizedBox(height: 8),
Linkify(
text: fileDescription,
textScaleFactor: MediaQuery.textScalerOf(context).scale(1),
style: TextStyle(
color: widget.color,
fontSize: widget.fontSize,
@ -420,6 +421,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
/// To use a MatrixFile as an AudioSource for the just_audio package
class MatrixFileAudioSource extends StreamAudioSource {
final MatrixFile file;
MatrixFileAudioSource(this.file);
@override