SeoListView class

A scrollable list widget that renders a Flutter ListView and injects a corresponding HTML structure for SEO purposes on the web.

This ensures that the child elements are indexable by search engines when running in Flutter Web, where the UI is usually rendered in a <canvas>.

The injected HTML structure uses a flex container, which is column-oriented for vertical scrolling or row-oriented for horizontal scrolling.

Inheritance
Implemented types

Constructors

SeoListView({Key? key, required List<Widget> children, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, EdgeInsetsGeometry? padding, bool shrinkWrap = false})
Creates a SeoListView.
const

Properties

children List<Widget>
The list of child widgets to display.
final
controller ScrollController?
Optional controller for the list scroll position.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry?
The amount of space by which to inset the children.
final
physics ScrollPhysics?
The physics of the scroll view.
final
primary bool?
Whether this is the primary scroll view associated with the parent.
final
reverse bool
Whether the list scrolls in the reverse direction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
The axis along which the list scrolls.
final
shrinkWrap bool
Whether the extent of the scroll view should be determined by the contents.
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