SeoSingleChildScrollView class

A scrollable container that behaves like SingleChildScrollView but can inject a corresponding HTML <div> structure for SEO purposes when running on the web.

The HTML container uses CSS overflow properties to mimic scrolling behavior and can include a single child element that is also SEO-injectable.

Inheritance
Implemented types

Constructors

SeoSingleChildScrollView({Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry? padding, bool? primary, ScrollPhysics? physics, ScrollController? controller, Widget? child, DragStartBehavior dragStartBehavior = DragStartBehavior.start, Clip clipBehavior = Clip.hardEdge, HitTestBehavior hitTestBehavior = HitTestBehavior.opaque, String? restorationId, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual})
Creates a SeoSingleChildScrollView.
const

Properties

child Widget?
The single child widget to be placed inside the scroll view.
final
clipBehavior Clip
How to clip the content when it overflows.
final
controller ScrollController?
An optional controller for the scroll view.
final
dragStartBehavior DragStartBehavior
Determines the drag start behavior for the scroll view.
final
hashCode int
The hash code for this object.
no setterinherited
hitTestBehavior HitTestBehavior
Hit testing behavior of the scroll view.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
How the keyboard should be dismissed when scrolling.
final
padding EdgeInsetsGeometry?
Empty space to inscribe inside the scroll view.
final
physics ScrollPhysics?
How the scroll view should respond to user input.
final
primary bool?
Whether this is the primary scroll view associated with the parent.
final
restorationId String?
Optional restoration ID for state restoration.
final
reverse bool
Whether the scroll view scrolls in the reading direction (false) or the reverse direction (true).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
The axis along which the scroll view scrolls.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
injectHtmlTo(WebHTMLElement parent) → void
Injects the HTML element into the given parent container.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited