removed country flags package and read flags from server and implement svg cahce structure
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
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';
|
||||
@@ -6,6 +5,7 @@ import 'package:tm_app/core/theme/colors.dart';
|
||||
import 'package:tm_app/core/utils/size_config.dart';
|
||||
|
||||
import '../../../data/services/model/tender_data/tender_data.dart';
|
||||
import '../../shared/flag.dart';
|
||||
import '../strings/tender_details_strings.dart';
|
||||
|
||||
class TenderLocationSection extends StatelessWidget {
|
||||
@@ -48,14 +48,8 @@ class TenderLocationSection extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
SizedBox(width: 4.0.w()),
|
||||
SizedBox(
|
||||
width: 32.0.w(),
|
||||
height: 21.0.h(),
|
||||
child: CountryFlag.fromCountryCode(
|
||||
detail.countryCode!,
|
||||
shape: RoundedRectangle(4),
|
||||
),
|
||||
),
|
||||
if (detail.countryCode != null)
|
||||
Flag(countryCode: detail.countryCode!),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 8.0.h()),
|
||||
|
||||
Reference in New Issue
Block a user