expose style option for attachment icon
This commit is contained in:
@@ -94,6 +94,7 @@ class MessageInput extends StatefulWidget {
|
|||||||
this.actionsLocation = ActionsLocation.left,
|
this.actionsLocation = ActionsLocation.left,
|
||||||
this.attachmentThumbnailBuilders,
|
this.attachmentThumbnailBuilders,
|
||||||
this.inputTextStyle,
|
this.inputTextStyle,
|
||||||
|
this.attachmentIconColor
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
/// Message to edit
|
/// Message to edit
|
||||||
@@ -143,6 +144,9 @@ class MessageInput extends StatefulWidget {
|
|||||||
/// `Theme.of(context).textTheme.bodyText2`.
|
/// `Theme.of(context).textTheme.bodyText2`.
|
||||||
final TextStyle inputTextStyle;
|
final TextStyle inputTextStyle;
|
||||||
|
|
||||||
|
/// Color used for attachment icon.
|
||||||
|
final Color attachmentIconColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
MessageInputState createState() => MessageInputState();
|
MessageInputState createState() => MessageInputState();
|
||||||
|
|
||||||
@@ -622,6 +626,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.add_circle_outline,
|
Icons.add_circle_outline,
|
||||||
|
color: widget.attachmentIconColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user