DecoratedText class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DecoratedText
- Available Extensions
Constructors
- DecoratedText(String? _data, {Key? key, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxDecoration? decoration, BoxDecoration? foregroundDecoration, TextStyle? style, StrutStyle strutStyle = const StrutStyle(), SafeAreaConfig? safeArea, ContextCallback? onPressed, ContextCallback? onLongPressed, int? maxLines, TextAlign? textAlign, TextOverflow? overflow, BoxConstraints? constraints, bool expanded = false, bool? visible, double? width, double? height, bool? center, Matrix4? transform, bool? sliver, Widget? leftWidget, Widget? rightWidget, bool softWrap = true, bool? material, MainAxisSize mainAxisSize = MainAxisSize.max, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, TextBaseline? textBaseline, HitTestBehavior? behavior, bool textExpanded = false, bool textFlexible = false, double? widgetPadding, bool isSelectable = false, Alignment? alignment})
-
const
-
DecoratedText.reactive(Stream<
String> ? _stream, {Key? key, String? initialData, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxDecoration? decoration, BoxDecoration? foregroundDecoration, TextStyle? style, StrutStyle strutStyle = const StrutStyle(), SafeAreaConfig? safeArea, ContextCallback? onPressed, ContextCallback? onLongPressed, int? maxLines, TextAlign? textAlign, TextOverflow? overflow, BoxConstraints? constraints, bool expanded = false, bool? visible, double? width, double? height, bool? center, Matrix4? transform, bool? sliver, Widget? leftWidget, Widget? rightWidget, bool softWrap = true, bool? material, MainAxisSize mainAxisSize = MainAxisSize.max, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, TextBaseline? textBaseline, HitTestBehavior? behavior, bool textExpanded = false, bool textFlexible = false, double? widgetPadding, bool isSelectable = false, Alignment? alignment}) -
const
Properties
- alignment → Alignment?
-
final
- behavior → HitTestBehavior?
-
final
- center → bool?
-
final
- constraints → BoxConstraints?
-
final
- crossAxisAlignment → CrossAxisAlignment?
-
final
- decoration → BoxDecoration?
-
作用于Container的decoration
final
- expanded → bool
-
final
- foregroundDecoration → BoxDecoration?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- initialData → String?
-
final
- isSelectable → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftWidget → Widget?
-
final
- mainAxisAlignment → MainAxisAlignment?
-
final
- mainAxisSize → MainAxisSize
-
final
- margin → EdgeInsetsGeometry?
-
外边距
final
- material → bool?
-
final
- maxLines → int?
-
final
- onLongPressed → ContextCallback?
-
final
- onPressed → ContextCallback?
-
final
- overflow → TextOverflow?
-
final
- padding → EdgeInsetsGeometry?
-
内边距
final
- rightWidget → Widget?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeArea → SafeAreaConfig?
-
final
- sliver → bool?
-
final
- softWrap → bool
-
final
- strutStyle → StrutStyle
-
final
- style → TextStyle?
-
final
- textAlign → TextAlign?
-
final
- textBaseline → TextBaseline?
-
final
- textExpanded → bool
-
final
- textFlexible → bool
-
final
- transform → Matrix4?
-
final
- visible → bool?
-
final
- widgetPadding → double?
-
final
- width → double?
-
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
-
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}) → 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