withText function

Widget withText(
  1. Reaction reaction,
  2. dynamic func()
)

Implementation

Widget withText(Reaction reaction, Function() func) {
  return Row(
    children: [
      button(reaction, func),
      Text(reaction.count.toString(), style: TextStyle(color: color(reaction)))
    ],
  );
}