fix: search page vertical scrollbar moves on horizontal scroll #1017

This commit is contained in:
Kingkor Roy Tirtho 2024-01-05 20:02:27 +06:00
parent 988a975bf1
commit c203ac69ee

View File

@ -55,6 +55,9 @@ class HorizontalPlaybuttonCardView<T> extends HookWidget {
),
SizedBox(
height: height,
child: NotificationListener(
// disable multiple scrollbar to use this
onNotification: (notification) => true,
child: ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
dragDevices: {
@ -90,8 +93,8 @@ class HorizontalPlaybuttonCardView<T> extends HookWidget {
PlaylistCard(item as PlaylistSimple),
Album => AlbumCard(item as Album),
Artist => Padding(
padding:
const EdgeInsets.symmetric(horizontal: 12.0),
padding: const EdgeInsets.symmetric(
horizontal: 12.0),
child: ArtistCard(item as Artist),
),
_ => const SizedBox.shrink(),
@ -99,6 +102,7 @@ class HorizontalPlaybuttonCardView<T> extends HookWidget {
}),
),
),
),
],
),
);