update icon

This commit is contained in:
Phuoc Nguyen
2025-11-17 09:34:17 +07:00
parent b5f90c364d
commit 49082026f5
12 changed files with 144 additions and 135 deletions

View File

@@ -5,6 +5,7 @@
library;
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:worker/core/constants/ui_constants.dart';
import 'package:worker/core/theme/colors.dart';
import 'package:worker/features/notifications/domain/entities/notification.dart'
@@ -62,7 +63,7 @@ class NotificationCard extends StatelessWidget {
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(_getIcon(), size: 18, color: _getIconColor()),
FaIcon(_getIcon(), size: 16, color: _getIconColor()),
const SizedBox(width: 8),
Expanded(
child: Text(
@@ -119,21 +120,21 @@ class NotificationCard extends StatelessWidget {
final type = notification.type.toLowerCase();
if (type.contains('points') || type.contains('loyalty')) {
return Icons.card_giftcard;
return FontAwesomeIcons.gift;
} else if (type.contains('promotion') || type.contains('sale')) {
return Icons.local_offer;
return FontAwesomeIcons.tag;
} else if (type.contains('shipping')) {
return Icons.local_shipping;
return FontAwesomeIcons.truck;
} else if (type.contains('tier') || type.contains('upgrade')) {
return Icons.workspace_premium;
return FontAwesomeIcons.crown;
} else if (type.contains('event')) {
return Icons.event;
return FontAwesomeIcons.calendarDays;
} else if (type.contains('confirmed')) {
return Icons.check_circle;
return FontAwesomeIcons.solidCircleCheck;
} else if (type.contains('birthday')) {
return Icons.cake;
return FontAwesomeIcons.cakeCandles;
} else {
return Icons.notifications;
return FontAwesomeIcons.bell;
}
}