Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
modal_bottom_sheet
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
tb2761
2020-04-10 20:49:09 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
066ea735d3f750987304610bf5cfe27d6908b276
066ea735
1 parent
30373acb
fix: assertion when scrollController is not attached
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
lib/src/bottom_sheet.dart
lib/src/bottom_sheet.dart
View file @
066ea73
...
...
@@ -231,7 +231,8 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
void
_handleScrollUpdate
(
ScrollNotification
notification
)
{
if
(
notification
.
metrics
.
pixels
<=
notification
.
metrics
.
minScrollExtent
)
{
//Check if listener is same from scrollController
if
(
_scrollController
.
position
.
pixels
!=
notification
.
metrics
.
pixels
)
{
if
(
_scrollController
.
hasClients
&&
_scrollController
.
position
.
pixels
!=
notification
.
metrics
.
pixels
)
{
return
;
}
DragUpdateDetails
dragDetails
;
...
...
Please
register
or
login
to post a comment