added country flags
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:country_flags/country_flags.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:tm_app/core/constants/strings.dart';
|
||||
@@ -116,7 +117,10 @@ class TendersListItem extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: 32.0.w(),
|
||||
height: 21.0.h(),
|
||||
child: Image.asset(AssetsManager.seFlag, fit: BoxFit.cover),
|
||||
child: CountryFlag.fromCountryCode(
|
||||
tender.countryCode!,
|
||||
shape: RoundedRectangle(4),
|
||||
),
|
||||
),
|
||||
Spacer(),
|
||||
// Container(
|
||||
|
||||
@@ -23,6 +23,7 @@ dependencies:
|
||||
json_annotation: ^4.8.1
|
||||
http: ^1.5.0
|
||||
intl: ^0.20.2
|
||||
country_flags: ^3.3.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user