mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
fix: search page vertical scrollbar moves on horizontal scroll #1017
This commit is contained in:
parent
988a975bf1
commit
c203ac69ee
@ -55,6 +55,9 @@ class HorizontalPlaybuttonCardView<T> extends HookWidget {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: height,
|
height: height,
|
||||||
|
child: NotificationListener(
|
||||||
|
// disable multiple scrollbar to use this
|
||||||
|
onNotification: (notification) => true,
|
||||||
child: ScrollConfiguration(
|
child: ScrollConfiguration(
|
||||||
behavior: ScrollConfiguration.of(context).copyWith(
|
behavior: ScrollConfiguration.of(context).copyWith(
|
||||||
dragDevices: {
|
dragDevices: {
|
||||||
@ -90,8 +93,8 @@ class HorizontalPlaybuttonCardView<T> extends HookWidget {
|
|||||||
PlaylistCard(item as PlaylistSimple),
|
PlaylistCard(item as PlaylistSimple),
|
||||||
Album => AlbumCard(item as Album),
|
Album => AlbumCard(item as Album),
|
||||||
Artist => Padding(
|
Artist => Padding(
|
||||||
padding:
|
padding: const EdgeInsets.symmetric(
|
||||||
const EdgeInsets.symmetric(horizontal: 12.0),
|
horizontal: 12.0),
|
||||||
child: ArtistCard(item as Artist),
|
child: ArtistCard(item as Artist),
|
||||||
),
|
),
|
||||||
_ => const SizedBox.shrink(),
|
_ => const SizedBox.shrink(),
|
||||||
@ -99,6 +102,7 @@ class HorizontalPlaybuttonCardView<T> extends HookWidget {
|
|||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user