mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
add scrollbar to local favorites page
This commit is contained in:
@@ -102,10 +102,13 @@ class _LocalFavoritesPageState extends State<_LocalFavoritesPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var scrollController = ScrollController();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
var body = Scaffold(
|
Widget body = SmoothCustomScrollView(
|
||||||
body: SmoothCustomScrollView(slivers: [
|
controller: scrollController,
|
||||||
|
slivers: [
|
||||||
if (!searchMode && !multiSelectMode)
|
if (!searchMode && !multiSelectMode)
|
||||||
SliverAppbar(
|
SliverAppbar(
|
||||||
style: context.width < changePoint
|
style: context.width < changePoint
|
||||||
@@ -447,7 +450,17 @@ class _LocalFavoritesPageState extends State<_LocalFavoritesPage> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]),
|
],
|
||||||
|
);
|
||||||
|
body = Scrollbar(
|
||||||
|
controller: scrollController,
|
||||||
|
thickness: App.isDesktop ? 8 : 12,
|
||||||
|
radius: const Radius.circular(8),
|
||||||
|
interactive: true,
|
||||||
|
child: ScrollConfiguration(
|
||||||
|
behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
|
||||||
|
child: body,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: !multiSelectMode && !searchMode,
|
canPop: !multiSelectMode && !searchMode,
|
||||||
|
Reference in New Issue
Block a user