dark colors added

This commit is contained in:
amirrezaghabeli
2025-08-07 11:06:52 +03:30
parent cc12c6bb5c
commit 4179a0b292
9 changed files with 144 additions and 129 deletions
+41 -35
View File
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:tm_app/core/routes/app_routes.dart';
import 'package:tm_app/views/shared/tender_app_bar.dart';
import '../../../core/constants/strings.dart';
import '../../core/theme/colors.dart';
@@ -16,7 +17,7 @@ class HomeScreen extends StatelessWidget {
child: Scaffold(
backgroundColor: AppColors.backgroundColor,
body: _body(context),
appBar: _appbar(),
appBar: tenderAppBar(title: AppStrings.home),
),
);
}
@@ -52,37 +53,6 @@ class HomeScreen extends StatelessWidget {
);
}
PreferredSize _appbar() {
return PreferredSize(
preferredSize: Size.fromHeight(56.0.h()),
child: Container(
color: AppColors.backgroundColor,
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
height: 56.0.h(),
width: double.infinity,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
AppStrings.home,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: AppColors.grey70,
),
),
Image.asset(
'assets/icons/tenderLogo.png',
width: 59.0.w(),
height: 28.0.h(),
fit: BoxFit.cover,
),
],
),
),
);
}
Widget _progressBarsRow() {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@@ -122,7 +92,7 @@ class HomeScreen extends StatelessWidget {
},
),
StatisticsCard(
backgroundColor: Color(0xFFEAF8F9),
backgroundColor: AppColors.primary10,
iconPath: 'assets/icons/thumb.svg',
title: AppStrings.approvedTenders,
amount: '03',
@@ -141,7 +111,7 @@ class HomeScreen extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
StatisticsCard(
backgroundColor: Color(0xFFFFF2E0),
backgroundColor: AppColors.orange10,
iconPath: 'assets/icons/shield.svg',
title: AppStrings.tenderValue,
amount: '\$250,000',
@@ -150,7 +120,7 @@ class HomeScreen extends StatelessWidget {
onTap: () {},
),
StatisticsCard(
backgroundColor: Color(0xFFF4F4F4),
backgroundColor: AppColors.grey10,
iconPath: 'assets/icons/edit.svg',
title: AppStrings.thunderStatus,
amount: '23',
@@ -187,3 +157,39 @@ class HomeScreen extends StatelessWidget {
);
}
}
class TenderAppBar extends StatelessWidget {
const TenderAppBar({super.key});
@override
Widget build(BuildContext context) {
return PreferredSize(
preferredSize: Size.fromHeight(56.0.h()),
child: Container(
color: AppColors.backgroundColor,
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
height: 56.0.h(),
width: double.infinity,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
AppStrings.home,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: AppColors.grey70,
),
),
Image.asset(
'assets/icons/tenderLogo.png',
width: 59.0.w(),
height: 28.0.h(),
fit: BoxFit.cover,
),
],
),
),
);
}
}
+1 -1
View File
@@ -5,7 +5,6 @@ import '../../core/utils/size_config.dart';
class StatisticsCard extends StatelessWidget {
const StatisticsCard({
super.key,
required this.backgroundColor,
required this.iconPath,
required this.title,
@@ -13,6 +12,7 @@ class StatisticsCard extends StatelessWidget {
required this.textColor,
required this.onTap,
required this.enableTap,
super.key,
});
final Color backgroundColor;