utils
library
Functions
-
Extract button size from ButtonStyle (minimumSize or fixedSize)
-
Extract width/height from SizedBox or Container
-
Extract Size from MaterialStateProperty
<Size>
-
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