# Image

Extensions to the Image widget.

# FLImage

FLImage adds a click effect to a image, and can set the image displayed when highlighted.

  • inkwell

FLImage(
    borderRadius: BorderRadius.circular(10),
    image: AssetImage('assets/messages.png'),
    width: _kItemImageSize,
    height: _kItemImageSize,
    fit: BoxFit.fill,
    onPressed: (){},
)
  • highlight image

FLImage(
    borderRadius: BorderRadius.circular(10),
    image: AssetImage('assets/google.png'),
    highlightImage: AssetImage('assets/google+.png'),
    width: _kItemImageSize,
    height: _kItemImageSize,
    fit: BoxFit.fill,
    onPressed: (){},
)