update icon

This commit is contained in:
Phuoc Nguyen
2025-11-14 18:02:37 +07:00
parent aae3c9d080
commit b5f90c364d
54 changed files with 534 additions and 245 deletions

View File

@@ -6,6 +6,7 @@ library;
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:go_router/go_router.dart';
import 'package:shimmer/shimmer.dart';
import 'package:worker/core/constants/ui_constants.dart';
@@ -82,7 +83,7 @@ class FavoritesPage extends ConsumerWidget {
backgroundColor: const Color(0xFFF4F6F8),
appBar: AppBar(
leading: IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.black),
icon: const FaIcon(FontAwesomeIcons.arrowLeft, color: Colors.black, size: 20),
onPressed: () => context.pop(),
),
title: const Text('Yêu thích', style: TextStyle(color: Colors.black)),
@@ -110,7 +111,7 @@ class FavoritesPage extends ConsumerWidget {
// Clear all button
if (favoriteCount > 0)
IconButton(
icon: const Icon(Icons.delete_outline, color: Colors.black),
icon: const FaIcon(FontAwesomeIcons.trashCan, color: Colors.black, size: 20),
tooltip: 'Xóa tất cả',
onPressed: () => _showClearAllDialog(context, ref, favoriteCount),
),
@@ -165,8 +166,8 @@ class _EmptyState extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
// Large icon
Icon(
Icons.favorite_border,
FaIcon(
FontAwesomeIcons.heart,
size: 80.0,
color: AppColors.grey500.withValues(alpha: 0.5),
),
@@ -360,8 +361,8 @@ class _ErrorState extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
// Error icon
Icon(
Icons.error_outline,
FaIcon(
FontAwesomeIcons.circleExclamation,
size: 80.0,
color: AppColors.danger.withValues(alpha: 0.7),
),
@@ -406,7 +407,7 @@ class _ErrorState extends StatelessWidget {
borderRadius: BorderRadius.circular(AppRadius.button),
),
),
icon: const Icon(Icons.refresh),
icon: const FaIcon(FontAwesomeIcons.arrowsRotate, size: 18),
label: const Text(
'Thử lại',
style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.w600),