circle static method

dynamic circle(
  1. BuildContext context,
  2. double width,
  3. Color color, {
  4. Widget child = const SizedBox(),
})

Implementation

static circle(
  BuildContext context,
  double width,
  Color color, {
  Widget child = const SizedBox(),
}) =>
    Container(
      alignment: Alignment.center,
      decoration: BoxDecoration(shape: BoxShape.circle, color: color),
      width: width,
      height: width,
      child: child,
    );