Hide layout buttons on focus

This commit is contained in:
Elias Bonnici 2024-06-13 12:50:10 +02:00
parent ac35861370
commit b4b4e77b08
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF

View File

@ -443,7 +443,8 @@ class _UnlockedViewState extends ConsumerState<_UnlockedView> {
setState(() {});
},
),
if (searchController.text.isEmpty) ...[
if (searchController.text.isEmpty &&
!searchFocus.hasFocus) ...[
Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
@ -456,7 +457,7 @@ class _UnlockedViewState extends ConsumerState<_UnlockedView> {
color:
Theme.of(context).colorScheme.background,
width: 1,
height: 40,
height: 45,
),
),
],