feat: wip message input

This commit is contained in:
Deven Joshi
2020-10-16 17:52:56 +05:30
parent ad44e44911
commit aa867b34b5
+13 -37
View File
@@ -618,24 +618,14 @@ class MessageInputState extends State<MessageInput> {
Widget _buildGiphyButton() { Widget _buildGiphyButton() {
return Center( return Center(
child: Material( child: IconButton(
clipBehavior: Clip.hardEdge, onPressed: () {
shape: RoundedRectangleBorder( setState(() {
borderRadius: BorderRadius.circular(32), _giphyEnabled = true;
), });
color: Colors.transparent, },
child: IconButton( icon: Icon(
onPressed: () { StreamIcons.lightning,
setState(() {
_giphyEnabled = true;
});
},
icon: Transform.rotate(
child: Icon(
StreamIcons.lightning,
),
angle: 0.4,
),
), ),
), ),
); );
@@ -643,23 +633,11 @@ class MessageInputState extends State<MessageInput> {
Widget _buildAttachmentButton() { Widget _buildAttachmentButton() {
return Center( return Center(
child: Material( child: IconButton(
clipBehavior: Clip.hardEdge, onPressed: () {
shape: RoundedRectangleBorder( showAttachmentModal();
borderRadius: BorderRadius.circular(32), },
), icon: Icon(StreamIcons.attach),
color: Colors.transparent,
child: IconButton(
onPressed: () {
showAttachmentModal();
},
icon: Transform.rotate(
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,
), ),
), ),
), ),