fix: fix reaction alignment and theming.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-05-08 20:27:39 +05:30
committed by xsahil03x
parent 5ace429216
commit 161057ef4c
7 changed files with 187 additions and 259 deletions
@@ -1,5 +1,14 @@
import 'package:flutter/material.dart';
/// {@template reactionIconBuilder}
/// Signature for a function that builds a reaction icon.
/// {@endtemplate}
typedef ReactionIconBuilder = Widget Function(
BuildContext context,
bool isHighlighted,
double iconSize,
);
/// {@template streamReactionIcon}
/// Reaction icon data
/// {@endtemplate}
@@ -13,10 +22,6 @@ class StreamReactionIcon {
/// Type of reaction
final String type;
/// Asset to display for reaction
final Widget Function(
BuildContext,
bool highlighted,
double size,
) builder;
/// {@macro reactionIconBuilder}
final ReactionIconBuilder builder;
}