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