ffItem method

  1. @override
Widget ffItem(
  1. BuildContext context,
  2. int index
)
override

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!();
    },
  );
}