Skip to main content
1

🖱️ Interaction & Input

clickableMouse({VoidCallback? onTap, Function(PointerHoverEvent)? onHover, ...})
Widget
Makes the widget clickable, ensures the mouse cursor changes to a pointer (hand icon), and provides callbacks for hover events.
Card(child: Text('Click Me'))
    .clickableMouse(
      onTap: () => print('Tapped!'),
       onHover: (event) => print('Mouse is over!'),
    );
addSelectionArea()
Widget
Wraps the widget in a SelectionArea, allowing the user to select and copy text within it. Useful for desktop/web.
const Text('Copy Me').addSelectionArea();
2

📏 Sizing & Positioning

expanded({int flex})
Widget
Wraps the widget in an Expanded widget, forcing it to fill the available space along the main axis of a Row or Column.
Row(children: [
  Container(width: 50).expanded(), // Takes remaining space
  const Text('Fixed')
]);
flexible({int flex, FlexFit fit})
Widget
Wraps the widget in a Flexible widget, allowing it to grow or shrink, constrained by available space.
Row(children: [
  Container(width: 200).flexible(fit: FlexFit.tight),
  const Text('Hello')
]);
align({AlignmentGeometry alignment})
Widget
Wraps the widget in an Align widget, positioning the child within its own bounds.
Container(height: 100).align(alignment: Alignment.topCenter);
3

🎨 Styling & Wrappers

padding({EdgeInsetsGeometry padding})
Widget
Wraps the widget in a Padding widget.
Text('Title').padding() // Adds 8.0 padding all around
clip({BorderRadiusGeometry borderRadius})
Widget
Wraps the widget in a ClipRRect widget to apply rounded corners.
Image.network('url').clip(borderRadius: BorderRadius.circular(12.0));
visibility({bool visible})
Widget
Controls the visibility of the widget without removing it from the tree.
const Icon(Icons.star).visibility(visible: userIsLoggedIn);
visible()
Widget
Ensures the widget is visible (convenience method).
if (!isLoaded) Container().visible();
4

⚙️ Scrollbar Control

removeScrollbar(BuildContext context)
Widget
Removes the system scrollbar from a scrollable widget. Useful for clean desktop/web interfaces.
ListView.builder(...).removeScrollbar(context);
addScrollbar(BuildContext context)
Widget
Ensures a scrollbar is visible for a scrollable widget, overriding any parent scroll configuration settings.
GridView.builder(...).addScrollbar(context);