Fix draggable scrollbar overlapping app bar and status bar

This commit is contained in:
Ming Ming 2021-11-18 22:31:55 +08:00
parent 0e8d125a8c
commit 49dca92f70
3 changed files with 5 additions and 3 deletions

View file

@ -123,6 +123,8 @@ class _HomePhotosState extends State<HomePhotos>
child: DraggableScrollbar.semicircle(
controller: _scrollController,
overrideMaxScrollExtent: scrollExtent,
// status bar + app bar
topOffset: MediaQuery.of(context).padding.top + kToolbarHeight,
child: ScrollConfiguration(
behavior: ScrollConfiguration.of(context)
.copyWith(scrollbars: false),

View file

@ -229,8 +229,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "v0.1.0-nc-photos-1"
resolved-ref: d97c03ddea7b6bae0e170430e0cb7c27e725ff2a
ref: "v0.1.0-nc-photos-2"
resolved-ref: "233d360e24f101ca9e33c7a1332dadd20fc20b71"
url: "https://gitlab.com/nkming2/flutter-draggable-scrollbar"
source: git
version: "0.1.0"

View file

@ -35,7 +35,7 @@ dependencies:
draggable_scrollbar:
git:
url: https://gitlab.com/nkming2/flutter-draggable-scrollbar
ref: v0.1.0-nc-photos-1
ref: v0.1.0-nc-photos-2
equatable: ^2.0.0
event_bus: ^2.0.0
exifdart: