FlusmicRichText class
FlusmicRichText
Builds a widget based on a List of Richables
.
Richable can be a EmbedText
or EmbedImage
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FlusmicRichText
Constructors
-
FlusmicRichText.new(List<
Richable> richFields, {Key? key, double bottomSeparation = 8.0, CrossAxisAlignment crossAlignment = CrossAxisAlignment.start, Widget? failWidget, TextStyle? headline1Style, TextStyle? headline2Style, TextStyle? headline3Style, TextStyle? headline4Style, TextStyle? headline5Style, TextStyle? headline6Style, BoxFit imageFit = BoxFit.cover, Widget? loadingWidget, TextStyle? paragraphStyle}) -
Deafult constructor
const
Properties
- bottomSeparation → double
-
Separation between elements
final
- crossAlignment → CrossAxisAlignment
-
Horizontal aligment of items.
final
- failWidget → Widget?
-
Widget to show if image loading fails
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline1Style → TextStyle?
-
Style for headline1
final
- headline2Style → TextStyle?
-
Style for headline2
final
- headline3Style → TextStyle?
-
Style for headline3
final
- headline4Style → TextStyle?
-
Style for headline4
final
- headline5Style → TextStyle?
-
Style for headline5
final
- headline6Style → TextStyle?
-
Style for headline6
final
- imageFit → BoxFit
-
How a image will fit
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingWidget → Widget?
-
Widget to show while loading an image
final
- paragraphStyle → TextStyle?
-
Style for paragraph
final
-
richFields
→ List<
Richable> -
Our RichText fields
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
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