iconContent method

Widget iconContent(
  1. IconData data,
  2. Color iconColor
)

Implementation

Widget iconContent(IconData data, Color iconColor) {
  List<Widget> widgets = [
    Avatar(state.context, radius: smallRadius).net(author).profile,
    Header(author: author, createdAt: notification.indexedAt)
        .build(state.context)
  ];
  if (post != null) {
    widgets.add(body(post!));
  }
  return paddingLR([
    SizedBox(width: 70, child: Icon(data, color: iconColor, size: 30))
  ], [
    Column(crossAxisAlignment: CrossAxisAlignment.start, children: widgets)
  ]);
}