ScrollConfiguration Widget – Flutter Widget Guide By Flutter Agency
What is ScrollConfiguration Widget?
ScrollConfiguration Widget controls how Scrollable widgets behave in a subtree. It determines the ScrollPhysics and viewport decorations used by descendants of the child.
The Default Constructor for it will look like below
ScrollConfiguration( { Key key, @required ScrollBehavior behavior, @required Widget child, } )
In Above constructor, the behavior and child arguments must not be null.
Properties:
- key: Controls how one widget replaces another widget in the tree.
- ScrollBehavior: ScrollBehavior Describes how Scrollable widgets should behave. The ScrollBehavior for Scrollable Widget in the given BuildContext.If no ScrollConfiguration Widget is in the scope of the given context, a default ScrollBehavior instance is returned.
- Widget child: This attribute is used to define the widget below this widget in the tree. This widget can only have one child. To layout multiple children, let this widget’s child be a widget such as Row Widget, Column Widget, or Stack Widget, which have a children’s property, and then provide the children to that widget.
FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget Guide, Flutter Projects, Code libs and etc.
FlutterAgency.com is one of the most popular online portal dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge on Flutter.
Thanks for reading !!!
Keep Fluttering !!!