TagPanel class

标签面板组件

提供图标标签的选择功能,支持选中状态可视化

Inheritance
Available extensions

Constructors

TagPanel({Key? key, required int selected, required dynamic onSelect(int), required List<IconData> icons})
创建标签面板组件
const

Properties

bottom Align

Available on Widget, provided by the WidgetExtra extension

居下 >>>

no setter
center Center

Available on Widget, provided by the WidgetExtra extension

居中控件 >>>

no setter
hashCode int
The hash code for this object.
no setterinherited
icons List<IconData>
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
left Align

Available on Widget, provided by the WidgetExtra extension

居左 >>>

no setter
leftBottom Align

Available on Widget, provided by the WidgetExtra extension

左下 >>>

no setter
leftTop Align

Available on Widget, provided by the WidgetExtra extension

左上 >>>

no setter
onSelect → dynamic Function(int)
final

Available on Widget, provided by the WidgetExtra extension

居右 >>>

no setter
rightBottom Align

Available on Widget, provided by the WidgetExtra extension

右下 >>>

no setter
rightTop Align

Available on Widget, provided by the WidgetExtra extension

右上 >>>

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected int
final
top Align

Available on Widget, provided by the WidgetExtra extension

居上 >>>

no setter

Methods

animatedAlign({Curve curve = Curves.linear, required Alignment animateValueForAlignment, Duration duration = const Duration(milliseconds: 300), double heightFactor = 1.0, double widthFactor = 1.0, VoidCallback? onEnd}) AnimatedAlign

Available on Widget, provided by the AlignAniExt extension

animatedContainer({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), BoxConstraints? constraints, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Decoration? decoration, Decoration? foregroundDecoration, AlignmentGeometry? alignment, VoidCallback? onEnd, double? width, double? height}) AnimatedContainer

Available on Widget, provided by the ContainerAniExt extension

animatedDefaultTextStyle({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), TextStyle textStyle = const TextStyle(), TextAlign? textAlign, bool softWrap = true, TextOverflow? overflow, int? maxLines, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior, VoidCallback? onEnd}) AnimatedDefaultTextStyle

Available on Widget, provided by the DefTextStyleExt extension

animatedMove({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd, required Offset offset}) AnimatedSlide

Available on Widget, provided by the AnimateExt extension

为Widget添加滑动动画效果。
animatedOpacity({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), required double opacity, bool alwaysIncludeSemantics = false, VoidCallback? onEnd}) AnimatedOpacity

Available on Widget, provided by the OpacityExt extension

animatedPadding({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), required EdgeInsetsGeometry padding, VoidCallback? onEnd}) AnimatedPadding

Available on Widget, provided by the PandingExt extension

animatedPhysicalModel({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd, required Color color, double borderRadius = 5.0, Clip clipBehavior = Clip.none, double elevation = 0, Color shadowColor = Colors.grey, BoxShape shape = BoxShape.rectangle}) AnimatedPhysicalModel

Available on Widget, provided by the PhysicalModelExt extension

animatedPosition({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), double? left, double? top, double? right, double? bottom, double? width, double? height, VoidCallback? onEnd}) AnimatedPositioned

Available on Widget, provided by the PositionedExt extension

animatedRotate({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd, required double degree, Alignment alignment = Alignment.center, FilterQuality? filterQuality}) AnimatedRotation

Available on Widget, provided by the AnimateExt extension

为Widget添加旋转动画效果。
animatedScale({Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd, required double scale, Alignment alignment = Alignment.center, FilterQuality? filterQuality}) → dynamic

Available on Widget, provided by the AnimateExt extension

animatedTheme({Curve curve = Curves.linear, Duration duration = kThemeAnimationDuration, required ThemeData themeData, VoidCallback? onEnd}) AnimatedTheme

Available on Widget, provided by the ThemeExt extension

animatedTween<T>({required T begin, required T end, required int duration, Curve curve = Curves.linear, required ValueWidgetBuilder<Object?> parentBuilder, Key? key, VoidCallback? onEnd}) TweenAnimationBuilder<Object?>

Available on Widget, provided by the AnimateExt extension

为Widget添加Tween动画效果。其它隐形动画是将从当前值开始动画到目标值,而Tween动画则是从begin值开始动画到end值, 这样比起其他隐形动画更加精准控制.
aspect(double whRate) AspectRatio

Available on Widget, provided by the WidgetExtra extension

宽高比(1为正方形) >>>

box({double? width, double? height, Color? color, EdgeInsets? padding, double borderSize = 1, Color borderColor = Colors.black, double? cornerRadius}) Container

Available on Widget, provided by the WidgetExtra extension

容器控件 >>> 创建带边框的容器

button({ButtonStyle? style, Color? color, required void onPressed()?}) ElevatedButton

Available on Widget, provided by the WidgetExtra extension

转换为按钮
card({Key? key, Color color = Colors.white, Color shadowColor = Colors.black, double elevation = 0, double radius = 4, bool borderOnForeground = true, EdgeInsetsGeometry margin = EdgeInsets.zero, Clip clipBehavior = Clip.hardEdge, bool semanticContainer = true}) Card

Available on Widget, provided by the WidgetExtra extension

卡片 >>>

clipPath(Path clip(Size)) ClipPath

Available on Widget, provided by the ClipWidget extension

路径裁剪快捷方法
clipRect({Rect clip(Size)?}) ClipRect

Available on Widget, provided by the ClipWidget extension

矩形裁剪快捷方法
clipRound({Rect clip(Size)?}) ClipOval

Available on Widget, provided by the ClipWidget extension

圆形裁剪快捷方法
clipRRect({RRect clip(Size)?, double borderRadius = 4}) ClipRRect

Available on Widget, provided by the ClipWidget extension

圆角矩形裁剪快捷方法
constrain({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) ConstrainedBox

Available on Widget, provided by the WidgetExtra extension

限定尺寸 >>>

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
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
expanded() Expanded

Available on Widget, provided by the WidgetExtra extension

扩大控件 >>>

fit({Key? key, required BoxFit fit, AlignmentGeometry alignment = Alignment.topLeft, Clip clipBehavior = Clip.none}) FittedBox

Available on Widget, provided by the WidgetExtra extension

设置内容限定模式 >>>

flip({bool horizontal = false, bool vertical = false}) Widget

Available on Widget, provided by the TransformExt extension

镜像翻转控件
gap({double? width, double? height}) SizedBox

Available on Widget, provided by the WidgetExtra extension

glassBox({Color? color, EdgeInsets? padding, double borderSize = 1, Color borderColor = Colors.black, double? cornerRadius}) LayoutBuilder

Available on Widget, provided by the GlassBox extension

gradientBox({double? width, double? height, Gradient? gradient, EdgeInsets? padding, double borderSize = 1, Color borderColor = Colors.black, double? cornerRadius}) Container

Available on Widget, provided by the WidgetExtra extension

创建渐变背景容器
heightBox(double height) SizedBox

Available on Widget, provided by the WidgetExtra extension

尺寸控件(高度) >>>

hide({Key? key, required bool hide}) Offstage

Available on Widget, provided by the WidgetExtra extension

隐藏 >>>

intrinsic(IntrinsicDirection direction) Widget

Available on Widget, provided by the WidgetExtra extension

move({double x = 0, double y = 0}) Widget

Available on Widget, provided by the TransformExt extension

平移控件位置
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset({required double x, required double y}) Align

Available on Widget, provided by the WidgetExtra extension

按比例配置位置(0为左或上, 1为右或下) >>>

onListen<T extends Notification>(NotificationListenerCallback<T> onNotification, {Key? key}) NotificationListener<T>

Available on Widget, provided by the WidgetExtra extension

行为监控 >>>

onPress({dynamic onHold()?, dynamic onRelease()?, dynamic onFocusRelease()?}) Widget

Available on Widget, provided by the WidgetExtra extension

按下/释放控件 >>> 添加按压事件

onTap(dynamic onTap()) InkWell

Available on Widget, provided by the WidgetExtra extension

点击控件 >>> 添加点击事件

opacity(double opacity) Opacity

Available on Widget, provided by the WidgetExtra extension

半透明控件(0为透明, 1为不透明) >>>

overflow({Key? key, AlignmentGeometry alignment = Alignment.topLeft, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) OverflowBox

Available on Widget, provided by the WidgetExtra extension

溢出控件 >>>

pad({double left = 0, double right = 0, double top = 0, double bottom = 0, double? vertical, double? all, double? horizon}) Padding

Available on Widget, provided by the WidgetPadded extension

为Widget添加padding
positioned({double? left, double? right, double? top, double? bottom, double? width, double? height, double? all, double? horizon, double? vertical}) Positioned

Available on Widget, provided by the WidgetExtra extension

指定控件的位置, 适用于Stack >>>

rotate({double angle = 0, Alignment basePoint = Alignment.center}) Widget

Available on Widget, provided by the TransformExt extension

二维平面旋转
rotated({required int quarter}) RotatedBox

Available on Widget, provided by the WidgetExtra extension

旋转控件, 每次翻转90度, 顺时针 >>>

rotateX({double angle = 0, Alignment basePoint = Alignment.center}) Widget

Available on Widget, provided by the TransformExt extension

三维X轴旋转
rotateY({double angle = 0, Alignment basePoint = Alignment.center}) Widget

Available on Widget, provided by the TransformExt extension

三维Y轴旋转
scale({double x = 1, double y = 1, Alignment basePoint = Alignment.center}) Widget

Available on Widget, provided by the TransformExt extension

缩放控件尺寸
sized({Size? size, double? height, double? width}) SizedBox

Available on Widget, provided by the WidgetExtra extension

尺寸控件 >>> 设置固定尺寸

skew({double horizontal = 0, double vertical = 0, Alignment basePoint = Alignment.center}) Widget

Available on Widget, provided by the TransformExt extension

斜切变形
sliver() Widget

Available on Widget, provided by the WidgetExtra extension

将控件Sliver化 >>>

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
widthBox(double width) SizedBox

Available on Widget, provided by the WidgetExtra extension

尺寸控件(宽度) >>>

Operators

operator ==(Object other) bool
The equality operator.
inherited