update icon
This commit is contained in:
@@ -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:worker/core/router/app_router.dart';
|
||||
import 'package:worker/core/theme/colors.dart';
|
||||
@@ -90,8 +91,8 @@ class _HomePageState extends ConsumerState<HomePage> {
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.error_outline,
|
||||
const FaIcon(
|
||||
FontAwesomeIcons.circleExclamation,
|
||||
color: AppColors.danger,
|
||||
size: 48,
|
||||
),
|
||||
@@ -149,18 +150,18 @@ class _HomePageState extends ConsumerState<HomePage> {
|
||||
title: 'Sản phẩm & Giỏ hàng',
|
||||
actions: [
|
||||
QuickAction(
|
||||
icon: Icons.grid_view,
|
||||
icon: FontAwesomeIcons.grip,
|
||||
label: 'Sản phẩm',
|
||||
onTap: () => context.pushNamed(RouteNames.products),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.shopping_cart,
|
||||
icon: FontAwesomeIcons.cartShopping,
|
||||
label: 'Giỏ hàng',
|
||||
badge: cartItemCount > 0 ? '$cartItemCount' : null,
|
||||
onTap: () => context.push(RouteNames.cart),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.favorite,
|
||||
icon: FontAwesomeIcons.heart,
|
||||
label: 'Yêu thích',
|
||||
onTap: () => context.push(RouteNames.favorites),
|
||||
),
|
||||
@@ -172,17 +173,17 @@ class _HomePageState extends ConsumerState<HomePage> {
|
||||
title: 'Đơn hàng & thanh toán',
|
||||
actions: [
|
||||
QuickAction(
|
||||
icon: Icons.description,
|
||||
icon: FontAwesomeIcons.fileLines,
|
||||
label: 'Chính sách giá',
|
||||
onTap: () => context.push(RouteNames.pricePolicy),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.inventory_2,
|
||||
icon: FontAwesomeIcons.boxesStacked,
|
||||
label: 'Đơn hàng',
|
||||
onTap: () => context.push(RouteNames.orders),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.receipt_long,
|
||||
icon: FontAwesomeIcons.receipt,
|
||||
label: 'Thanh toán',
|
||||
onTap: () => context.push(RouteNames.payments),
|
||||
),
|
||||
@@ -194,18 +195,18 @@ class _HomePageState extends ConsumerState<HomePage> {
|
||||
title: 'Khách hàng thân thiết',
|
||||
actions: [
|
||||
QuickAction(
|
||||
icon: Icons.add_circle_outline,
|
||||
icon: FontAwesomeIcons.circlePlus,
|
||||
label: 'Ghi nhận điểm',
|
||||
onTap: () =>
|
||||
_showComingSoon(context, 'Ghi nhận điểm', l10n),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.card_giftcard,
|
||||
icon: FontAwesomeIcons.gift,
|
||||
label: 'Đổi quà',
|
||||
onTap: () => context.push('/loyalty/rewards'),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.history,
|
||||
icon: FontAwesomeIcons.clockRotateLeft,
|
||||
label: 'Lịch sử điểm',
|
||||
onTap: () => context.push(RouteNames.pointsHistory),
|
||||
),
|
||||
@@ -217,12 +218,12 @@ class _HomePageState extends ConsumerState<HomePage> {
|
||||
title: 'Nhà mẫu, dự án & tin tức',
|
||||
actions: [
|
||||
QuickAction(
|
||||
icon: Icons.home_work,
|
||||
icon: FontAwesomeIcons.houseCircleCheck,
|
||||
label: 'Nhà mẫu',
|
||||
onTap: () => context.push(RouteNames.modelHouses),
|
||||
),
|
||||
QuickAction(
|
||||
icon: Icons.business,
|
||||
icon: FontAwesomeIcons.building,
|
||||
label: 'Đăng ký dự án',
|
||||
onTap: () =>
|
||||
_showComingSoon(context, 'Đăng ký dự án', l10n),
|
||||
|
||||
Reference in New Issue
Block a user