图片卡片
通过 2 种类型(填充或透明)自定义图片卡片
用法
填充图片卡片
FillImageCard(
width: 200,
heightImage: 140,
imageProvider: AssetImage('assets/mockup.png'),
tags: [_tag('Category', () {}), _tag('Product', () {})],
title: _title(),
description: _content(),
),
透明图片卡片
TransparentImageCard(
width: 200,
imageProvider: AssetImage('assets/mockup.png'),
tags: [ _tag('Product', () {}), ],
title: _title(color: Colors.white),
description: _content(color: Colors.white),
),
参数
你可以在 github 仓库中查看参数详情。