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

@@ -4,6 +4,7 @@
library;
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../core/constants/ui_constants.dart';
/// Custom app bar with consistent styling
@@ -112,7 +113,7 @@ class SearchAppBar extends StatelessWidget implements PreferredSizeWidget {
leading:
leading ??
IconButton(
icon: const Icon(Icons.arrow_back),
icon: const FaIcon(FontAwesomeIcons.arrowLeft, size: 20),
onPressed: () => Navigator.of(context).pop(),
),
title: TextField(
@@ -127,7 +128,7 @@ class SearchAppBar extends StatelessWidget implements PreferredSizeWidget {
border: InputBorder.none,
suffixIcon: controller?.text.isNotEmpty ?? false
? IconButton(
icon: const Icon(Icons.clear, color: Colors.white),
icon: const FaIcon(FontAwesomeIcons.xmark, color: Colors.white, size: 18),
onPressed: () {
controller?.clear();
onClear?.call();