From 4c24c0b4193e0f08314eb0f5834b68bed97fd9f2 Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Thu, 15 Feb 2024 12:24:18 +0330 Subject: [PATCH] Fix ip widget directionality --- lib/features/proxy/active/ip_widget.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/features/proxy/active/ip_widget.dart b/lib/features/proxy/active/ip_widget.dart index 07f6fb17..eeb1fe70 100644 --- a/lib/features/proxy/active/ip_widget.dart +++ b/lib/features/proxy/active/ip_widget.dart @@ -27,6 +27,7 @@ class IPText extends HookConsumerWidget { final t = ref.watch(translationsProvider); final isVisible = ref.watch(_showIp); final textTheme = Theme.of(context).textTheme; + final ipStyle = constrained ? textTheme.labelMedium : textTheme.labelLarge; return Semantics( label: t.proxies.ipInfoSemantics.address, @@ -41,7 +42,8 @@ class IPText extends HookConsumerWidget { child: AnimatedCrossFade( firstChild: Text( ip, - style: textTheme.labelMedium, + style: ipStyle, + textDirection: TextDirection.ltr, overflow: TextOverflow.ellipsis, ), secondChild: Padding( @@ -51,8 +53,8 @@ class IPText extends HookConsumerWidget { child: Text( obscureIp(ip), semanticsLabel: t.general.hidden, - style: - constrained ? textTheme.labelMedium : textTheme.labelLarge, + style: ipStyle, + textDirection: TextDirection.ltr, overflow: TextOverflow.ellipsis, ), ),