AntdImage class
@t 图片 @g 信息展示 @o 88 @d 可预览的图片。 @u 需要展示图片时使用。加载大图时显示 loading 或加载失败时容错处理。
- Inheritance
- Implementers
Constructors
-
AntdImage.new({Key? key, AntdImageStyle? style, AntdStyleBuilder<
AntdImageStyle, AntdImage> ? styleBuilder, double? height, double? width, required ImageProvider<Object> image, BoxFit? fit, double scale = 1.0, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium}) -
const
Properties
- alignment → AlignmentGeometry
-
对齐方式
final
- filterQuality → FilterQuality
-
过滤质量
final
- fit → BoxFit?
-
图片填充模式
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
高度
final
-
image
→ ImageProvider<
Object> -
图片
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- repeat → ImageRepeat
-
重复方式
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
缩放
final
- style → AntdImageStyle?
-
样式
finalinherited
-
styleBuilder
→ AntdStyleBuilder<
AntdImageStyle, AntdImage> ? -
动态样式
finalinherited
- width → double?
-
宽度
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
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
-
getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) → AntdImageStyle -
override
-
getFinalStyle(
BuildContext context, AntdImageStyle style, AntdMapToken token) → AntdImageStyle -
override
-
getInputStyle(
BuildContext context) → AntdImageStyle? -
inherited
-
getSize(
AntdImageStyle? style) → Size -
getStyle(
BuildContext context) → AntdImageStyle -
inherited
-
getStyleBuilder(
BuildContext context) → AntdStyleBuilder< AntdImageStyle, AntdImage> ? -
inherited
-
getThemeStyle(
BuildContext context, AntdTheme theme) → AntdStyleBuilder< AntdImageStyle, AntdImage> ? -
override
-
getWidget(
BuildContext context) → AntdImage -
override
-
margeStyle(
AntdImageStyle defaultStyle, AntdImageStyle? style) → AntdImageStyle -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
BuildContext context, AntdImageStyle style) → Widget -
override
-
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