US Office

1176 Shadeville Rd, Crawfordville Florida 32327, USA

 +1 (850) 780-1313

India Office

Office No 405, Kabir Shilp, Opp. Kansar Hotel, Opp. Landmark, Kudasan, Gandhinagar, Gujarat 382421

[email protected]

ScrollConfiguration Widget – Flutter Widget Guide By Flutter Agency

ScrollConfiguration widget

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 WidgetColumn 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 GuideFlutter ProjectsCode 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 !!!

Post a Comment