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