added notification some design and added item to navbar

This commit is contained in:
llsajjad
2025-09-13 08:03:54 +03:30
parent 91a2f11393
commit ffa964f7e5
17 changed files with 561 additions and 38 deletions
+4
View File
@@ -12,6 +12,9 @@ class AssetsManager {
static const tendersActive = 'assets/icons/task-square_active.svg';
static const profile = 'assets/icons/profile-circle.svg';
static const profileActive = 'assets/icons/profile-circle_active.svg';
static const contracts = 'assets/icons/icon_contracts.svg';
static const notify = 'assets/icons/notify_icon.svg';
static const notifyActive = 'assets/icons/notify_icon_active.svg';
// login page
static const logo = 'assets/pngs/logo.png';
@@ -45,6 +48,7 @@ class AssetsManager {
static const edit = 'assets/icons/edit.svg';
static const arrowRight = 'assets/icons/arrow-right.svg';
static const notification = 'assets/icons/notification.svg';
static const danger = 'assets/icons/danger.svg';
static const calendar = 'assets/icons/calendar.svg';
static const menu = 'assets/icons/menu.svg';
static const thumbLike = 'assets/icons/thumb_like.svg';
@@ -48,6 +48,22 @@ class MobileShellPage extends StatelessWidget {
iconPath: AssetsManager.tenders,
activeIconPath: AssetsManager.tendersActive,
),
_bottomNavigationItem(
context: context,
text: TendersStrings.contracts,
isActive: navigationShell.currentIndex == 4,
onTap: () => onTap(4),
iconPath: AssetsManager.contracts,
activeIconPath: AssetsManager.contracts,
),
_bottomNavigationItem(
context: context,
text: TendersStrings.notifications,
isActive: navigationShell.currentIndex == 3,
onTap: () => onTap(3),
iconPath: AssetsManager.notify,
activeIconPath: AssetsManager.notifyActive,
),
_bottomNavigationItem(
context: context,
text: ProfileStrings.profileTitle,
@@ -76,7 +92,10 @@ class MobileShellPage extends StatelessWidget {
width: 64.0.w(),
height: 72.0.h(),
child: Padding(
padding: EdgeInsets.only(top: 12.0.h(), bottom: 14.0.h()),
padding:
iconPath != AssetsManager.notify
? EdgeInsets.only(top: 12.0.h(), bottom: 14.0.h())
: EdgeInsets.only(top: 6.0.h(), bottom: 12.0.h()),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@@ -84,10 +103,11 @@ class MobileShellPage extends StatelessWidget {
Text(
text,
maxLines: 1,
style: TextStyle(
fontSize: 12.0.sp(),
fontSize:
iconPath == AssetsManager.notify ? 11.0.sp() : 12.0.sp(),
fontWeight: FontWeight.w400,
color: isActive ? AppColors.primaryColor : AppColors.grey60,
),
),