ImageSelector class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ImageSelector
- Available extensions
Constructors
-
ImageSelector.new({Key? key, required String leadText, required String emptyText, required dynamic onUpdateFileList(List<
String> ), Color iconColor = Colors.blue, double imageHeight = 80, String deleteTitle = 'Delete', String deleteCancel = 'Cancel', String deleteContent = 'Are you sure to delete picture?', required List<String> imageFileList, int imageLimit = 1}) -
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 - deleteCancel → String
-
final
- deleteContent → String
-
final
- deleteTitle → String
-
final
- emptyText → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color
-
final
-
imageFileList
→ List<
String> -
final
- imageHeight → double
-
final
- imageLimit → int
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leadText → String
-
final
- 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 -
onUpdateFileList
→ dynamic Function(List<
String> ) -
final
- right → Align
-
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
- top → Align
-
Available on Widget, provided by the WidgetExtra extension
居上 >>>
no setter
Methods
-
animatedParent<
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
-
animationCrossFade(
{required int duration, required Widget nextChild, required bool showNext}) → AnimatedCrossFade -
Available on Widget, provided by the AnimateExt extension
-
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
容器控件 >>>
-
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
-
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
-
move(
{Key? key, required Offset offset, bool transformHitTests = true}) → Transform -
Available on Widget, provided by the WidgetExtra extension
移动 >>>
-
moveAnimation(
{Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd, required Offset offset}) → AnimatedSlide -
Available on Widget, provided by the AnimateExt 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
配置尺寸适配 >>>
-
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(
{Key? key, required double degree, Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true, Widget? child}) → Transform -
Available on Widget, provided by the WidgetExtra extension
转换 >>>
-
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
-
rotateY(
{double angle = 0, Alignment basePoint = Alignment.center}) → Widget -
Available on Widget, provided by the TransformExt extension
-
rotationAnimation(
{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
-
scale(
{double x = 1, double y = 1, Alignment basePoint = Alignment.center}) → Widget -
Available on Widget, provided by the TransformExt extension
-
scale(
{Key? key, required double scale, Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true}) → Transform -
Available on Widget, provided by the WidgetExtra extension
缩放 >>>
-
scaleAnimation(
{Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd, required double scale, Alignment alignment = Alignment.center, FilterQuality? filterQuality}) → AnimatedScale -
Available on Widget, provided by the AnimateExt extension
-
sizeAnimation(
{Curve curve = Curves.linear, Alignment alignment = Alignment.center, Duration duration = const Duration(milliseconds: 300), Duration? reverseDuration, Clip clipBehavior = Clip.hardEdge}) → AnimatedSize -
Available on Widget, provided by the AnimateExt 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