Nested SingleChildScrollView
1,306
SingleChildScrollView has a property called physics
. Set physics
to SingleChildScrollView()
as shown below:
SingleChildScrollView(
physics:NeverScrollableScrollPhysics(),
)
Author by
rstrelba
Interests and Skills: Basic //since 1987 ;-) Firebird SQL server //since 1994 Delphi (18y) //since 1994 PHP+HTML+CSS+Javascript //since 2005 Java //since 2007 Android dev + SQLite //since 2011 Dart & Flatter // since 2018
Updated on December 12, 2022Comments
-
rstrelba over 1 year
I have a widget with nested SingleChildScrollView in SingleChildScrollView. It is possible to scroll down outer scroller when inner scroller reaches bottom and scroll up when inner one reaches top.
-
rstrelba almost 5 yearsI didn't find this physics class
-
Ashish Rawat almost 5 yearsits a property inside SingleChildScrollView
-
mirkancal over 4 yearsThe argument type 'SingleChildScrollView' can't be assigned to the parameter type 'ScrollPhysics'.
-
Ashish Rawat over 4 years@mirkancal that was my mistake
-
Ashish Rawat over 4 yearsits NeverScrollableScrollPhysics()