cSizedBox method

Widget cSizedBox(
  1. double? h,
  2. double? w
)

Create a widget with a fixed size.

h specifies the fixed height of the widget (can be null for unconstrained height). w specifies the fixed width of the widget (can be null for unconstrained width).

This extension wraps the widget with a SizedBox, allowing you to set a specific size for it.

Implementation

Widget cSizedBox(double? h, double? w) => SizedBox(
      child: this,
      height: h,
      width: w,
    );