ContentfulFlutterBuilder class
It returns the desired widget based on the type of the field.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ContentfulFlutterBuilder
Constructors
- ContentfulFlutterBuilder({required ContentfulEitherDataType data, required Includes? includes, required Widget textBuilder(Content textContent, TextStyle style, bool ignoreTextPadding, EdgeInsets? padding), required Widget blockQuoteBuilder(Widget child), required Widget linkWidgetBuilder(String? url, Widget child), required Widget imageBuilder(String imageUrl), required Widget dividerBuilder(), required TextStyle textStyle, Widget entryHyperlinkBuilder(String entryId, Widget child)?, EdgeInsets listIdentationPadding = const EdgeInsets.only(left: 16), TextStyle? headingOneStyle, TextStyle? headingTwoStyle, TextStyle? headingThreeStyle, TextStyle? headingFourStyle, TextStyle? headingFiveStyle, TextStyle? headingSixStyle, Key? key})
-
It returns the desired widget based on the type of the field.
const
Properties
- blockQuoteBuilder → Widget Function(Widget child)
-
final
- data → ContentfulEitherDataType
-
final
- dividerBuilder → Widget Function()
-
final
- entryHyperlinkBuilder → Widget Function(String entryId, Widget child)?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headingFiveStyle → TextStyle?
-
final
- headingFourStyle → TextStyle?
-
final
- headingOneStyle → TextStyle?
-
final
- headingSixStyle → TextStyle?
-
final
- headingThreeStyle → TextStyle?
-
final
- headingTwoStyle → TextStyle?
-
final
- imageBuilder → Widget Function(String imageUrl)
-
final
- includes → Includes?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- linkWidgetBuilder → Widget Function(String? url, Widget child)
-
final
- listIdentationPadding → EdgeInsets
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textBuilder → Widget Function(Content textContent, TextStyle style, bool ignoreTextPadding, EdgeInsets? padding)
-
final
- textStyle → TextStyle
-
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
-
getAssetUrl(
Content item) → String -
getTextStyle(
Content item) → TextStyle -
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