跳到主要内容

Place Grid

Place Grid

API

属性

属性名类型默认说明
itemsList< PlaceGridItem >元素列表
colsint1显示几列
spacedouble8元素间隙
heightdouble80高度
ratiodouble1显示比例
bgColorColor透明色背景色
class PlaceGridItem {
IconData? icon; //图标
String? title; //标题
double? titleSize; //标题大小
Color? color; //颜色
Color? iconColor; //图标颜色
double? iconSize; //图标大小
PlaceGridItem({
this.icon,
this.title,
this.titleSize,
this.color,
this.iconSize,
this.iconColor,
});
}

方法

属性名类型默认说明