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
bierbaumtim
2020-07-09 12:56:56 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
476773e04bc9fb450164ace11aa4566cbdb1db2a
476773e0
1 parent
641de0b3
Fix "ScrollController not attached to any scroll views" issue
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
lib/src/bottom_sheet.dart
lib/src/bottom_sheet.dart
View file @
476773e
...
...
@@ -258,12 +258,13 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
DateTime
_startTime
;
void
_handleScrollUpdate
(
ScrollNotification
notification
)
{
//Check if scrollController is used
if
(!
_scrollController
.
hasClients
)
return
;
final
scrollPosition
=
_scrollController
.
position
;
if
(
scrollPosition
.
axis
==
Axis
.
horizontal
)
return
;
//Check if scrollController is used
if
(!
_scrollController
.
hasClients
)
return
;
final
isScrollReversed
=
scrollPosition
.
axisDirection
==
AxisDirection
.
down
;
final
offset
=
isScrollReversed
...
...
Please
register
or
login
to post a comment