GestureExtensionsSection class

Gesture extensions demonstration section

Inheritance
Available extensions

Constructors

GestureExtensionsSection({Key? key, required void onTap(String)})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → void Function(String)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

absorbPointer([bool absorbing = true]) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with AbsorbPointer
align({AlignmentGeometry alignment = Alignment.center, double? widthFactor, double? heightFactor}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with Align
animatedSwitcher({Duration duration = const Duration(milliseconds: 200), AnimatedSwitcherTransitionBuilder? transitionBuilder}) Widget

Available on Widget, provided by the WidgetAnimationExtensions extension

Wraps widget with AnimatedSwitcher
aspectRatio(double aspectRatio) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with AspectRatio
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
card({Color? color, double? elevation, ShapeBorder? shape, EdgeInsetsGeometry? margin}) Widget

Available on Widget, provided by the WidgetMaterialExtensions extension

Wraps widget with Card
center() Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with center alignment
clipOval() Widget

Available on Widget, provided by the WidgetClipExtensions extension

Wraps widget with ClipOval
clipRect({Clip clipBehavior = Clip.hardEdge}) Widget

Available on Widget, provided by the WidgetClipExtensions extension

Wraps widget with ClipRect
clipRRect({double? borderRadius, BorderRadius? border}) Widget

Available on Widget, provided by the WidgetClipExtensions extension

Wraps widget with ClipRRect
constrained({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with ConstrainedBox
container({Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, AlignmentGeometry? transformAlignment, Widget? child, Clip clipBehavior = Clip.none}) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with container
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
decoratedBox({Color? color, DecorationImage? image, BoxBorder? border, BorderRadius? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with DecoratedBox
expanded([int flex = 1]) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with expanded
fittedBox({BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with FittedBox
flexible([int flex = 1]) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with flexible
fractionallySizedBox({double? widthFactor, double? heightFactor, AlignmentGeometry alignment = Alignment.center}) Widget

Available on Widget, provided by the WidgetSizingExtensions extension

Wraps widget with FractionallySizedBox
hero(Object tag) Widget

Available on Widget, provided by the WidgetAnimationExtensions extension

Wraps widget with Hero animation
ignorePointer([bool ignoring = true]) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with IgnorePointer
inkWell({VoidCallback? onTap, VoidCallback? onLongPress, VoidCallback? onDoubleTap, BorderRadius? borderRadius}) Widget

Available on Widget, provided by the WidgetGestureExtensions extension

Wraps widget with InkWell for material tap effect
intrinsicHeight() Widget

Available on Widget, provided by the WidgetSizingExtensions extension

Wraps widget with IntrinsicHeight
intrinsicWidth() Widget

Available on Widget, provided by the WidgetSizingExtensions extension

Wraps widget with IntrinsicWidth
limitedBox({double maxWidth = double.infinity, double maxHeight = double.infinity}) Widget

Available on Widget, provided by the WidgetSizingExtensions extension

Wraps widget with LimitedBox
margin({double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with margin
material({Color? color, double elevation = 0, Color? shadowColor, ShapeBorder? shape, BorderRadius? borderRadius}) Widget

Available on Widget, provided by the WidgetMaterialExtensions extension

Wraps widget with Material
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDoubleTap(VoidCallback? onDoubleTap) Widget

Available on Widget, provided by the WidgetGestureExtensions extension

Wraps widget with double tap gesture
onLongPress(VoidCallback? onLongPress) Widget

Available on Widget, provided by the WidgetGestureExtensions extension

Wraps widget with long press gesture
onTap(VoidCallback? onTap) Widget

Available on Widget, provided by the WidgetGestureExtensions extension

Wraps widget with gesture detector
opacity(double opacity) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with opacity
overflowBox({AlignmentGeometry alignment = Alignment.center, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) Widget

Available on Widget, provided by the WidgetSizingExtensions extension

Wraps widget with OverflowBox
padding({double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with padding
positioned({double? top, double? bottom, double? left, double? right, double? width, double? height}) Widget

Available on Widget, provided by the WidgetLayoutExtensions extension

Wraps widget with Positioned (for Stack)
repaintBoundary() Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with RepaintBoundary
rotate(double angle) Widget

Available on Widget, provided by the WidgetTransformExtensions extension

Wraps widget with rotation transform
safeArea({bool top = true, bool bottom = true, bool left = true, bool right = true}) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with SafeArea
scale(double scale, {Offset? origin}) Widget

Available on Widget, provided by the WidgetTransformExtensions extension

Wraps widget with scale transform
scrollable({ScrollPhysics? physics, bool reverse = false, ScrollController? controller, Axis scrollDirection = Axis.vertical}) Widget

Available on Widget, provided by the WidgetScrollExtensions extension

Wraps widget with SingleChildScrollView
semantics({String? label, String? hint, bool? button, bool? header, bool excludeSemantics = false}) Widget

Available on Widget, provided by the WidgetSemanticsExtensions extension

Wraps widget with Semantics (simplified version)
sizedBox({double? width, double? height}) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with sized box
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
tooltip(String message, {Duration? waitDuration}) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with Tooltip
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
transform({required Matrix4 transform, Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true}) Widget

Available on Widget, provided by the WidgetTransformExtensions extension

Wraps widget with Transform
translate({double? x, double? y}) Widget

Available on Widget, provided by the WidgetTransformExtensions extension

Wraps widget with translate transform
unconstrained({TextDirection? textDirection, AlignmentGeometry alignment = Alignment.center, Axis? constrainedAxis}) Widget

Available on Widget, provided by the WidgetSizingExtensions extension

Wraps widget with UnconstrainedBox
visible(bool visible) Widget

Available on Widget, provided by the WidgetCoreExtensions extension

Wraps widget with visibility

Operators

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