From 77d62eefddc14813461d9e2a2ce963bee6613667 Mon Sep 17 00:00:00 2001 From: Neevash Ramdial Date: Sun, 15 Nov 2020 21:34:14 -0400 Subject: [PATCH] expose style option for attachment icon --- lib/src/message_input.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 729866ee..20a2bdf6 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -94,6 +94,7 @@ class MessageInput extends StatefulWidget { this.actionsLocation = ActionsLocation.left, this.attachmentThumbnailBuilders, this.inputTextStyle, + this.attachmentIconColor }) : super(key: key); /// Message to edit @@ -143,6 +144,9 @@ class MessageInput extends StatefulWidget { /// `Theme.of(context).textTheme.bodyText2`. final TextStyle inputTextStyle; + /// Color used for attachment icon. + final Color attachmentIconColor; + @override MessageInputState createState() => MessageInputState(); @@ -622,6 +626,7 @@ class MessageInputState extends State { }, icon: Icon( Icons.add_circle_outline, + color: widget.attachmentIconColor, ), ), );