loadAssetWithCircleBg method

Widget loadAssetWithCircleBg(
  1. String path, {
  2. Color color = Colors.black,
  3. double radiusSize = 28,
  4. double padding = 6,
})

Implementation

Widget loadAssetWithCircleBg(String path,
        {Color color = Colors.black,
        double radiusSize = 28,
        double padding = 6}) =>
    CircleAvatar(
      radius: radiusSize,
      backgroundColor: color,
      child: Center(
        child: Container(
          padding: EdgeInsets.all(padding),
          width: 24,
          height: 24,
          child: Image.asset(path),
        ),
      ),
    );