getEditIcon function

Widget getEditIcon({
  1. EditAction? onPressed,
})

Implementation

Widget getEditIcon({EditAction? onPressed}) {
  var pen = Image.asset("assets/images/segoshvishna.fiverr.com/pen128.png",
      package: "eliud_pkg_feed");
  double size = 33;
  var container = Container(
      height: size,
      width: size,
      decoration: BoxDecoration(
        color: Colors.white,
        shape: BoxShape.circle,
        border: Border.all(color: Colors.white, width: 8),
        boxShadow: [
          BoxShadow(
            color: Colors.black,
            blurRadius: 5.0,
          ),
        ],
      ),
      child: pen);
  if (onPressed != null) {
    return GestureDetector(child: container, onTap: onPressed);
  } else {
    return container;
  }
}