let users use custom reaction builders

This commit is contained in:
Salvatore Giordano
2021-06-14 17:20:52 +02:00
parent aa3cdfcd9e
commit 3a44117628
8 changed files with 148 additions and 26 deletions
@@ -1,14 +1,20 @@
import 'package:flutter/material.dart';
/// Reaction icon data
class ReactionIcon {
/// Constructor for creating [ReactionIcon]
ReactionIcon({
required this.type,
required this.assetName,
required this.builder,
});
/// Type of reaction
final String type;
/// Asset to display for reaction
final String assetName;
final Widget Function(
BuildContext,
bool highlighted,
double size,
) builder;
}