feat: wip message input

This commit is contained in:
Deven Joshi
2020-10-16 17:52:56 +05:30
parent ad44e44911
commit aa867b34b5
+2 -26
View File
@@ -618,48 +618,26 @@ class MessageInputState extends State<MessageInput> {
Widget _buildGiphyButton() { Widget _buildGiphyButton() {
return Center( return Center(
child: Material(
clipBehavior: Clip.hardEdge,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(32),
),
color: Colors.transparent,
child: IconButton( child: IconButton(
onPressed: () { onPressed: () {
setState(() { setState(() {
_giphyEnabled = true; _giphyEnabled = true;
}); });
}, },
icon: Transform.rotate( icon: Icon(
child: Icon(
StreamIcons.lightning, StreamIcons.lightning,
), ),
angle: 0.4,
),
),
), ),
); );
} }
Widget _buildAttachmentButton() { Widget _buildAttachmentButton() {
return Center( return Center(
child: Material(
clipBehavior: Clip.hardEdge,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(32),
),
color: Colors.transparent,
child: IconButton( child: IconButton(
onPressed: () { onPressed: () {
showAttachmentModal(); showAttachmentModal();
}, },
icon: Transform.rotate( icon: Icon(StreamIcons.attach),
child: Icon(
Icons.attach_file_sharp,
),
angle: 0.4,
),
),
), ),
); );
} }
@@ -891,7 +869,6 @@ class MessageInputState extends State<MessageInput> {
icon: Icon( icon: Icon(
StreamIcons.send_message, StreamIcons.send_message,
color: Colors.grey, color: Colors.grey,
size: 16.0,
), ),
), ),
), ),
@@ -914,7 +891,6 @@ class MessageInputState extends State<MessageInput> {
icon: Icon( icon: Icon(
StreamIcons.send_message, StreamIcons.send_message,
color: StreamChatTheme.of(context).accentColor, color: StreamChatTheme.of(context).accentColor,
size: 16.0,
), ),
), ),
), ),