circularProviders method

Widget circularProviders(
  1. ImageProvider<Object> imageProvider
)

Implementation

Widget circularProviders(ImageProvider imageProvider) {
  return Container(
    height: itemRadius,
    width: itemRadius,
    decoration: BoxDecoration(
      shape: BoxShape.circle,
      border: Border.all(
        color: Colors.white,
        width: itemBorderWidth!,
      ),
    ),
    child: Container(
      decoration: BoxDecoration(
        shape: BoxShape.circle,
        color: Colors.white,
        image: DecorationImage(
          image: imageProvider,
          fit: BoxFit.cover,
        ),
      ),
    ),
  );
}