chore(ui): Apply review feedbacks.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-08-13 11:45:40 +05:30
committed by xsahil03x
parent f8a6539d09
commit f097ef9913
2 changed files with 13 additions and 6 deletions
@@ -50,9 +50,10 @@ typedef MentionTileBuilder = Widget Function(
Member member,
);
/// Widget builder for action button
/// [defaultActionButton] is the default [IconButton] configuration
/// Use [defaultActionButton.copyWith] to easily customize it
/// Widget builder for action button.
///
/// [defaultActionButton] is the default [IconButton] configuration,
/// Use [defaultActionButton.copyWith] to easily customize it.
typedef ActionButtonBuilder = Widget Function(
BuildContext context,
IconButton defaultActionButton,
@@ -257,10 +258,16 @@ class MessageInput extends StatefulWidget {
/// A callback for error reporting
final ErrorListener? onError;
/// Builder for customizing attachment button.
/// Builder for customizing the attachment button.
///
/// The builder contains the default [IconButton] that can be customized by
/// calling `.copyWith`.
final ActionButtonBuilder? attachmentButtonBuilder;
/// Builder for customizing command button.
/// Builder for customizing the command button.
///
/// The builder contains the default [IconButton] that can be customized by
/// calling `.copyWith`.
final ActionButtonBuilder? commandButtonBuilder;
@override