FlutterRenderer class
The flutter rendered walks through list of bbob.Node
s.
The output is a InlineSpan which can be used by the RichText widget.
Constructors
- FlutterRenderer({required BBStylesheet stylesheet})
Properties
- currentTag → Element?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stylesheet → BBStylesheet
-
The style used for rendering this piece of BBCode text.
BBStylesheet.defaultTextStyle will be used as first text style on the
_styleStack
final
Methods
-
appendTextSpan(
TextSpan span) → void -
Appends a TextSpan and writes it to the current
_wrappedStyleBuffer
or writes it to the output directly. -
appendTextSpans(
List< InlineSpan> spans) → void -
Appends TextSpans and writes it to the current
_wrappedStyleBuffer
or writes it to the output directly. -
endRenderData(
) → void - Pops the last render data from the stack.
-
endWrappedStyle(
) → ParsedElement - Ends a wrapped style and returns the ParsedElement
-
getCurrentGestureRecognizer(
) → TapGestureRecognizer? -
getCurrentStyle(
) → TextStyle -
getRenderData(
) → RenderData - Gets the currently used RenderData such that it can be used by a child node.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peekTapAction(
) → (dynamic Function()?) -
popStyle(
) → void -
Pops the most recent addition from the
_styleStack
. -
popTapAction(
) → void -
pushStyle(
TextStyle style) → void -
Pushes a TextStyle to the
_styleStack
. -
pushTapAction(
dynamic onTap()) → void -
render(
List< Node> nodes) → List<InlineSpan> -
Render
bbob.Node
s using thisFlutterRender
instance. -
startRenderData(
RenderData data) → void -
Adds a new RenderData object to the
_renderDataStack
. -
startWrappedStyle(
Element element) → void - Creates a new buffer for a wrapped style.
-
toString(
) → String -
A string representation of this object.
inherited
-
visitElementAfter(
Element element) → void - Called when an Element has been reached, after its children have been visited.
-
visitElementBefore(
Element element) → bool - Called at the start of an element.
-
visitText(
Text text) → void - Called when a Text node has been reached.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited