This commit is contained in:
tnswo561412 2025-12-09 15:09:36 +00:00 committed by GitHub
commit e8d0d0f223
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 9 deletions

View File

@ -0,0 +1,11 @@
{
"permissions": {
"allow": [
"Bash(flutter build:*)",
"Bash(curl:*)",
"Bash(/c/tools/nuget.exe help:*)",
"Bash(rustc:*)",
"Bash(ls:*)"
]
}
}

View File

@ -225,15 +225,19 @@ class SearchPage extends HookConsumerWidget {
], ],
), ),
Expanded( Expanded(
child: AnimatedSwitcher( child: GestureDetector(
duration: const Duration(milliseconds: 300), onTap: () => FocusScope.of(context).unfocus(),
child: switch (selectedChip.value) { behavior: HitTestBehavior.translucent,
"tracks" => const SearchPageTracksTab(), child: AnimatedSwitcher(
"albums" => const SearchPageAlbumsTab(), duration: const Duration(milliseconds: 300),
"artists" => const SearchPageArtistsTab(), child: switch (selectedChip.value) {
"playlists" => const SearchPagePlaylistsTab(), "tracks" => const SearchPageTracksTab(),
_ => const SearchPageAllTab(), "albums" => const SearchPageAlbumsTab(),
}, "artists" => const SearchPageArtistsTab(),
"playlists" => const SearchPagePlaylistsTab(),
_ => const SearchPageAllTab(),
},
),
), ),
), ),
], ],

BIN
rustup-init.exe Normal file

Binary file not shown.