fix: ip flag
This commit is contained in:
@@ -131,7 +131,9 @@ class IPCountryFlag extends HookConsumerWidget {
|
||||
width: size,
|
||||
height: size,
|
||||
padding: const EdgeInsets.all(2),
|
||||
child: Center(child: CircleFlag(countryCode)),
|
||||
child: Center(
|
||||
child: CircleFlag(countryCode == "ir" ? "ir-shir" : countryCode),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hiddify/gen/fonts.gen.dart';
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
import 'dart:io';
|
||||
|
||||
extension TextAlignX on BuildContext {
|
||||
bool get isRtl => Directionality.of(this) == TextDirection.rtl;
|
||||
|
||||
@@ -172,10 +172,11 @@ packages:
|
||||
circle_flags:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: circle_flags
|
||||
sha256: "028d5ca1bb12b9a4b29dc1a25f32a428ffd69e91343274375d9e574855af2daa"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
path: "."
|
||||
ref: patch-1
|
||||
resolved-ref: f78f22dcc19306f2a602b1c50f3c7a324456be9c
|
||||
url: "https://github.com/hiddify-com/flutter_circle_flags.git"
|
||||
source: git
|
||||
version: "4.0.2"
|
||||
cli_util:
|
||||
dependency: transitive
|
||||
|
||||
@@ -73,7 +73,11 @@ dependencies:
|
||||
wolt_modal_sheet: ^0.4.1
|
||||
dart_mappable: ^4.2.1
|
||||
fluentui_system_icons: ^1.1.229
|
||||
circle_flags: ^4.0.2
|
||||
# circle_flags: ^4.0.2
|
||||
circle_flags:
|
||||
git:
|
||||
url: https://github.com/hiddify-com/flutter_circle_flags.git
|
||||
ref: patch-1
|
||||
http: ^1.2.0
|
||||
timezone_to_country: ^2.1.0
|
||||
json_path: ^0.7.1
|
||||
|
||||
Reference in New Issue
Block a user