clipCircular method
3 Level Wrapping
Wrap the widget into an FittedBox Widget to make sure aspect ratio is same Then wrap this into a SizedBox Then wrap this SizedBox into clip oval Intended to use for the Image that aspect ratio may not the same If you click a widget rather a Image use the Modifier.clipCircle to avoid unnecessary wrapping
Implementation
Modifier clipCircular(double size) {
return Modifier._([..._modifiers, (widget) {
return ClipOval(
child: SizedBox(
width: size,
height: size,
child: FittedBox(
fit: BoxFit.cover,
child: widget,
),
),
);
}]);
}