chore(ui): Apply review feedbacks.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -48,7 +48,7 @@ extension PlatformFileX on PlatformFile {
|
|||||||
|
|
||||||
/// Extension on [InputDecoration]
|
/// Extension on [InputDecoration]
|
||||||
extension InputDecorationX on InputDecoration {
|
extension InputDecorationX on InputDecoration {
|
||||||
/// Merges this [AvatarThemeData] with the [other]
|
/// Merges this [InputDecoration] with the [other]
|
||||||
InputDecoration merge(InputDecoration? other) {
|
InputDecoration merge(InputDecoration? other) {
|
||||||
if (other == null) return this;
|
if (other == null) return this;
|
||||||
return copyWith(
|
return copyWith(
|
||||||
|
|||||||
@@ -50,9 +50,10 @@ typedef MentionTileBuilder = Widget Function(
|
|||||||
Member member,
|
Member member,
|
||||||
);
|
);
|
||||||
|
|
||||||
/// Widget builder for action button
|
/// Widget builder for action button.
|
||||||
/// [defaultActionButton] is the default [IconButton] configuration
|
///
|
||||||
/// Use [defaultActionButton.copyWith] to easily customize it
|
/// [defaultActionButton] is the default [IconButton] configuration,
|
||||||
|
/// Use [defaultActionButton.copyWith] to easily customize it.
|
||||||
typedef ActionButtonBuilder = Widget Function(
|
typedef ActionButtonBuilder = Widget Function(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
IconButton defaultActionButton,
|
IconButton defaultActionButton,
|
||||||
@@ -257,10 +258,16 @@ class MessageInput extends StatefulWidget {
|
|||||||
/// A callback for error reporting
|
/// A callback for error reporting
|
||||||
final ErrorListener? onError;
|
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;
|
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;
|
final ActionButtonBuilder? commandButtonBuilder;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user