fix: flag

This commit is contained in:
Hiddify
2024-03-09 22:15:54 +01:00
parent ce4a7ad918
commit 9373698ea7
3 changed files with 6 additions and 5 deletions

View File

@@ -132,7 +132,8 @@ class IPCountryFlag extends HookConsumerWidget {
height: size, height: size,
padding: const EdgeInsets.all(2), padding: const EdgeInsets.all(2),
child: Center( child: Center(
child: CircleFlag(countryCode == "ir" ? "ir-shir" : countryCode), child: CircleFlag(
countryCode.toLowerCase() == "ir" ? "ir-shir" : countryCode),
), ),
), ),
); );

View File

@@ -173,11 +173,11 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: patch-1 ref: main
resolved-ref: f78f22dcc19306f2a602b1c50f3c7a324456be9c resolved-ref: "19d83cba60de91143491a441b5076583bf1681a8"
url: "https://github.com/hiddify-com/flutter_circle_flags.git" url: "https://github.com/hiddify-com/flutter_circle_flags.git"
source: git source: git
version: "4.0.2" version: "4.1.0"
cli_util: cli_util:
dependency: transitive dependency: transitive
description: description:

View File

@@ -77,7 +77,7 @@ dependencies:
circle_flags: circle_flags:
git: git:
url: https://github.com/hiddify-com/flutter_circle_flags.git url: https://github.com/hiddify-com/flutter_circle_flags.git
ref: patch-1 ref: main
http: ^1.2.0 http: ^1.2.0
timezone_to_country: ^2.1.0 timezone_to_country: ^2.1.0
json_path: ^0.7.1 json_path: ^0.7.1