TM-164,165,167 bugs fixed

This commit is contained in:
amirrezaghabeli
2025-09-30 12:14:05 +03:30
parent fc925f7b84
commit 1746ff81bd
14 changed files with 369 additions and 301 deletions
+32 -18
View File
@@ -8,11 +8,13 @@ import 'package:tm_app/views/home/widgets/tender_card_progress_bar.dart';
import '../../core/constants/assets.dart';
import '../../core/theme/colors.dart';
import '../../core/utils/size_config.dart';
import '../shared/base_button.dart';
import '../shared/flag.dart';
class TendersListItem extends StatelessWidget {
const TendersListItem({required this.tender, super.key});
const TendersListItem({required this.tender, required this.onTap, super.key});
final TenderData tender;
final VoidCallback onTap;
@override
Widget build(BuildContext context) {
@@ -102,24 +104,36 @@ class TendersListItem extends StatelessWidget {
const TenderCardProgressBar(),
SizedBox(height: 15.0.h()),
Row(
children: [
SvgPicture.asset(AssetsManager.location),
SizedBox(width: 1.0.w()),
Text(
tender.countryCode!,
style: TextStyle(
fontSize: 12.0.sp(),
fontWeight: FontWeight.w400,
color: AppColors.grey80,
Expanded(
child: Row(
children: [
SvgPicture.asset(AssetsManager.location),
SizedBox(width: 1.0.w()),
Text(
tender.countryCode!,
style: TextStyle(
fontSize: 12.0.sp(),
fontWeight: FontWeight.w400,
color: AppColors.grey80,
),
),
),
SizedBox(width: 8.0.w()),
tender.countryCode != null
? Flag(countryCode: tender.countryCode!)
: const Flag(countryCode: ''),
const Spacer(),
],
SizedBox(width: 8.0.w()),
tender.countryCode != null
? Flag(countryCode: tender.countryCode!)
: const Flag(countryCode: ''),
const Spacer(),
BaseButton(
text: HomeStrings.seeMoreButton,
backgroundColor: AppColors.primary2,
isEnabled: true,
width: 100.0.w(),
height: 40.0.h(),
textColor: AppColors.mainBlue,
fontSize: 12.0.sp(),
onPressed: onTap,
),
],
),
),
],
),