ffItem method
item
Implementation
@override
Widget ffItem(BuildContext context, int index) {
StartEntity entity = datas[index];
return FFLineContainer(
color: Colors.transparent,
padding: EdgeInsets.symmetric(
vertical: 10,
horizontal: 20,
),
children: [
FFTextButton(
text: entity.id,
notes: "这是注释",
),
FFTextButton(
text: entity.title,
),
FFTextButton(
text: entity.info,
),
],
onClick: () {
if (entity.onClick != null) entity.onClick!();
},
);
}