SeoWrap class
A Wrap-like widget that arranges its children in a flow layout,
and injects an equivalent semantic HTML <div> using CSS flex-wrap
for SEO and accessibility purposes when running on Web.
This allows search engines to semantically understand the layout and relationships between elements.
Implements SeoInjectableLayout so it can participate in the SEO DOM hierarchy.
- Inheritance
- Implemented types
Constructors
-
SeoWrap({Key? key, Axis direction = Axis.horizontal, WrapAlignment alignment = WrapAlignment.start, WrapAlignment runAlignment = WrapAlignment.start, double spacing = 0.0, double runSpacing = 0.0, VerticalDirection verticalDirection = VerticalDirection.down, TextDirection? textDirection, WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start, Clip clipBehavior = Clip.none, required List<
Widget> children}) -
Creates a SeoWrap widget that mirrors the functionality of Wrap,
and also injects an HTML layout for SEO on Web.
const
Properties
- alignment → WrapAlignment
-
How the children should be placed along the main axis.
final
-
children
→ List<
Widget> -
The children to arrange inside the wrap layout.
final
- clipBehavior → Clip
-
Clip behavior for this widget.
final
- crossAxisAlignment → WrapCrossAlignment
-
Determines how children within a run are aligned relative to each other.
final
- direction → Axis
-
The direction to use as the main axis (horizontal or vertical).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runAlignment → WrapAlignment
-
How the lines of children should be placed along the cross axis.
final
- runSpacing → double
-
How much space should be between lines in the cross axis.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
How much space should be between children in the main axis.
final
- textDirection → TextDirection?
-
Determines the order in which children are painted.
final
- verticalDirection → VerticalDirection
-
The vertical direction of the layout.
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 a
<div>with CSS flex-wrap styling into the parent WebHTMLElement.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