feat: wip message input

This commit is contained in:
Deven Joshi
2020-10-16 18:44:54 +05:30
parent ef449a98e6
commit d362283484
+21 -3
View File
@@ -206,6 +206,7 @@ class MessageInputState extends State<MessageInput> {
direction: Axis.horizontal,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
if (_giphyEnabled)
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
@@ -293,7 +294,25 @@ class MessageInputState extends State<MessageInput> {
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(32),
),
contentPadding: EdgeInsets.all(4)
contentPadding: EdgeInsets.all(4),
prefix: Chip(
backgroundColor: StreamChatTheme.of(context).accentColor,
label: Row(
children: [
Icon(StreamIcons.lightning, color: Colors.white,),
SizedBox(width: 2,),
Text('GIPHY', style: TextStyle(color: Colors.white),),
],
)
),
suffixIcon: IconButton(
icon: Icon(Icons.cancel_outlined),
onPressed: () {
setState(() {
_giphyEnabled = false;
});
},
)
),
textCapitalization: TextCapitalization.sentences,
),
@@ -880,8 +899,7 @@ class MessageInputState extends State<MessageInput> {
StreamIcons.send_message,
color: Colors.grey,
),
)
),
)),
),
);
}