location flags

This commit is contained in:
amirrezaghabeli
2025-08-19 10:20:34 +03:30
parent c38527b65d
commit 93e4e81ca0
2 changed files with 17 additions and 5 deletions
@@ -1,3 +1,4 @@
import 'package:country_flags/country_flags.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:tm_app/core/constants/assets.dart';
@@ -47,10 +48,13 @@ class TenderLocationSection extends StatelessWidget {
),
),
SizedBox(width: 4.0.w()),
Image.asset(
AssetsManager.seFlag,
height: 20.0.h(),
width: 20.0.w(),
SizedBox(
width: 32.0.w(),
height: 21.0.h(),
child: CountryFlag.fromCountryCode(
detail.countryCode!,
shape: RoundedRectangle(4),
),
),
],
),
+9 -1
View File
@@ -1,3 +1,4 @@
import 'package:country_flags/country_flags.dart';
import 'package:flutter/material.dart' hide DateUtils;
import 'package:flutter_svg/svg.dart';
import 'package:tm_app/core/constants/strings.dart';
@@ -243,7 +244,14 @@ class TenderCard extends StatelessWidget {
),
SizedBox(width: 8.0.w()),
// Country flag placeholder
Image.asset(AssetsManager.seFlag, width: 32.0.w(), height: 21.0.h()),
SizedBox(
width: 32.0.w(),
height: 21.0.h(),
child: CountryFlag.fromCountryCode(
tender.countryCode!,
shape: RoundedRectangle(4),
),
),
],
),
);