utils library

Classes

Dimensions
SemanticWrappingInfo
Information about semantic wrapping of a widget

Functions

extractButtonStyleSize(Expression styleExpr) Dimensions?
Extract button size from ButtonStyle (minimumSize or fixedSize)
extractDimensions(InstanceCreationExpression node) Dimensions?
Extract width/height from SizedBox or Container
extractMaterialStatePropertySize(Expression expr) Dimensions?
Extract Size from MaterialStateProperty<Size>
extractNumericValue(Expression expr) double?
Extract numeric value from an expression (handles literals and simple expressions)
getSemanticWrappingInfo(InstanceCreationExpression node) SemanticWrappingInfo
Check if a widget is wrapped in Semantics or ExcludeSemantics
hasInteractiveCallbacks(InstanceCreationExpression node) bool
Check if a widget has interactive callbacks (onTap, onDoubleTap, etc.)
hasNonEmptyStringValue(Expression expr) bool
Check if an expression has a non-empty string value
hasParentTooltip(InstanceCreationExpression node) bool
Check if a widget has a parent with a tooltip parameter
isWrappedInFocusWidget(InstanceCreationExpression node) bool
Check if the GestureDetector is wrapped in a Focus or InkWell widget
isWrappedInSemanticsWithLabel(InstanceCreationExpression node) bool
Check if the IconButton is wrapped in a Semantics widget with a label