From 9373698ea7a2523c639f26a367e306492142a2fc Mon Sep 17 00:00:00 2001 From: Hiddify Date: Sat, 9 Mar 2024 22:15:54 +0100 Subject: [PATCH] fix: flag --- lib/features/proxy/active/ip_widget.dart | 3 ++- pubspec.lock | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/features/proxy/active/ip_widget.dart b/lib/features/proxy/active/ip_widget.dart index 7c6d89cd..ef775308 100644 --- a/lib/features/proxy/active/ip_widget.dart +++ b/lib/features/proxy/active/ip_widget.dart @@ -132,7 +132,8 @@ class IPCountryFlag extends HookConsumerWidget { height: size, padding: const EdgeInsets.all(2), child: Center( - child: CircleFlag(countryCode == "ir" ? "ir-shir" : countryCode), + child: CircleFlag( + countryCode.toLowerCase() == "ir" ? "ir-shir" : countryCode), ), ), ); diff --git a/pubspec.lock b/pubspec.lock index fac5b9bb..706d4bb8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -173,11 +173,11 @@ packages: dependency: "direct main" description: path: "." - ref: patch-1 - resolved-ref: f78f22dcc19306f2a602b1c50f3c7a324456be9c + ref: main + resolved-ref: "19d83cba60de91143491a441b5076583bf1681a8" url: "https://github.com/hiddify-com/flutter_circle_flags.git" source: git - version: "4.0.2" + version: "4.1.0" cli_util: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 161a4730..efccc5e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -77,7 +77,7 @@ dependencies: circle_flags: git: url: https://github.com/hiddify-com/flutter_circle_flags.git - ref: patch-1 + ref: main http: ^1.2.0 timezone_to_country: ^2.1.0 json_path: ^0.7.1