style: fix android dashboard title, enlarge icons, remove search delay

This commit is contained in:
ssbg04 committed 2026-07-21 23:29:18 +08:00
1 parent e25cf990c8
commit 209fc7c40f
2 files changed
+11 -9

No files matched your search

@@ -556,14 +556,15 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
if (!_searchFocusNode.hasFocus && _searchController.text.isEmpty) ...[
const Flexible(
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
'Dashboard Overview',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
Flexible(
child: Text(
'Dashboard Overview',
style: TextStyle(
fontSize: MediaQuery.of(context).size.width > 600 ? 24 : 18,
fontWeight: FontWeight.bold,
),
maxLines: 2,
overflow: TextOverflow.visible,
),
),
const SizedBox(width: 16),
@@ -600,7 +601,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
Builder(builder: (ctx) => Stack(
children: [
IconButton(
icon: const Icon(Icons.notifications, size: 28),
icon: const Icon(Icons.notifications, size: 32),
onPressed: () => _showNotifications(ctx),
),
if (unreadCount > 0)
@@ -222,7 +222,7 @@ class _AppSearchBarState extends ConsumerState<AppSearchBar> {
setState(() => _isExpanded = true);
_focusNode.requestFocus();
},
icon: const Icon(Icons.search, size: 28),
icon: const Icon(Icons.search, size: 32),
tooltip: 'Search',
);
}
@@ -264,6 +264,7 @@ class _AppSearchBarState extends ConsumerState<AppSearchBar> {
widget.onChanged?.call('');
if (widget.collapsible) {
_focusNode.unfocus();
_removeOverlay();
setState(() => _isExpanded = false);
} else {
_focusNode.requestFocus();