InlineFrame class

The frame an INLINE box paints round its content, where the content is one piece no line breaks -- a word, or an atomic inline -- so the whole box is on one line: a <span> chip, a padded label, a bordered badge round an icon.

CSS lays such a box out ACROSS and DOWN differently (CSS 2.1 8.1, 10.3.1, 10.6.1, 10.8.1):

  • Across, its margin, border and padding are room before its first letter and after its last: margin outside, insets (border and padding) inside it, each side on its own.
  • Down, they take no room at all: the line is as tall as the line-heights on it say, and the padding and border stand out over and under the CONTENT AREA -- the font's ascent above the baseline and its descent below it, ascent and descent -- over whatever is above and below.
  • The decoration -- the background and the border -- fills the border box that makes (css-backgrounds-3 3.7, border-box).

The child is the content as a line of its own, the width it takes on the line; this box is that and the room across, exactly as tall as the child, and answers the child's baseline -- so a WidgetSpan standing it on the baseline puts the content where the line puts the box's text, and the paragraph's own line height is whatever the child's is.

Inheritance

Constructors

InlineFrame({Key? key, required Decoration decoration, EdgeInsets insets = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, required double ascent, required double descent, Widget? child})
const

Properties

ascent → double
The content area: how far it reaches above the child's baseline and below it.
final
child → Widget?
The widget below this widget in the tree.
finalinherited
decoration → Decoration
The background and the border, painted over the border box.
final
descent → double
The content area: how far it reaches above the child's baseline and below it.
final
hashCode → int
The hash code for this object.
no setterinherited
insets → EdgeInsets
The border and the padding: room across, and how far the border box stands out from the content area down.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin → EdgeInsets
The margin across; room outside the border box that paints nothing. Only its left and right are read.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → SingleChildRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
createRenderObject(BuildContext context) → RenderInlineFrame
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
override
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
didUnmountRenderObject(covariant RenderObject renderObject) → void
This method is called when a RenderObject that was previously associated with this widget is removed from the render tree. The provided RenderObject will be of the same type as the one created by this widget's createRenderObject method.
inherited
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
updateRenderObject(BuildContext context, covariant RenderInlineFrame renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.
override

Operators

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