SeoGridView class
A scrollable grid widget that renders a Flutter GridView 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 CSS Grid layout to visually represent the grid in a semantic way.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SeoGridView
- Implemented types
Constructors
-
SeoGridView({Key? key, required SliverGridDelegate gridDelegate, required List<
Widget> children, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, EdgeInsetsGeometry? padding, bool shrinkWrap = false}) -
Creates a SeoGridView.
const
Properties
-
children
→ List<
Widget> -
The list of child widgets to display.
final
- controller → ScrollController?
-
Optional controller for scroll position.
final
- gridDelegate → SliverGridDelegate
-
The number of columns in the grid.
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?
-
Optional padding for the grid.
final
- physics → ScrollPhysics?
-
The physics of the scroll view.
final
- primary → bool?
-
Whether this grid is the primary scroll view associated with the parent.
final
- reverse → bool
-
Whether the grid scrolls in the reverse direction.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis
-
The scroll direction of the grid.
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
parentcontainer.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