# Image

对 Image 组件的扩展。

# FLImage

FLImage 为图片增加点击效果,并可以设置高亮时显示的图片。

  • 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: (){},
)