added notification some design and added item to navbar
This commit is contained in:
@@ -18,16 +18,34 @@ class NotificationCard extends StatelessWidget {
|
||||
margin: EdgeInsets.symmetric(horizontal: 24.0.w()),
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.0.w(), vertical: 16.0.h()),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.mainBlue.withValues(alpha: 0.03),
|
||||
color:
|
||||
notification.title == 'Tender Submitted'
|
||||
? AppColors.orange10
|
||||
: notification.title == 'New Tender Invitation'
|
||||
? AppColors.mainBlue.withValues(alpha: 0.03)
|
||||
: AppColors.green0,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
border: Border.all(color: AppColors.mainBlue.withValues(alpha: 0.15)),
|
||||
border: Border.all(
|
||||
color:
|
||||
notification.title == 'Tender Submitted'
|
||||
? AppColors.warningColor
|
||||
: notification.title == 'New Tender Invitation'
|
||||
? AppColors.mainBlue.withValues(alpha: 0.15)
|
||||
: AppColors.green20,
|
||||
),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
SvgPicture.asset(AssetsManager.notification),
|
||||
SvgPicture.asset(
|
||||
notification.title == 'Tender Submitted'
|
||||
? AssetsManager.danger
|
||||
: notification.title == 'New Tender Invitation'
|
||||
? AssetsManager.notification
|
||||
: AssetsManager.tickCircle,
|
||||
),
|
||||
SizedBox(width: 8.0.w()),
|
||||
Text(
|
||||
notification.title,
|
||||
|
||||
Reference in New Issue
Block a user