make ip private for both footer and sidebar

This commit is contained in:
Hiddify
2024-02-10 18:39:04 +01:00
parent 1f40c30778
commit 804d2ab19f
2 changed files with 19 additions and 25 deletions

View File

@@ -6,6 +6,7 @@ import 'package:flutter_animate/flutter_animate.dart';
import 'package:gap/gap.dart';
import 'package:hiddify/core/localization/translations.dart';
import 'package:hiddify/core/widget/skeleton_widget.dart';
import 'package:hiddify/features/proxy/active/active_proxy_footer.dart';
import 'package:hiddify/features/proxy/active/active_proxy_notifier.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
@@ -30,11 +31,7 @@ class ActiveProxySideBarCard extends HookConsumerWidget {
final asyncState = ref.watch(activeProxyNotifierProvider);
Widget propText(String txt) {
return Text(
txt,
overflow: TextOverflow.ellipsis,
style: theme.textTheme.bodySmall,
);
return IPWidget(txt, style: theme.textTheme.bodySmall);
}
return Theme(