Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// mobile/lib/livestream_channel.dart:95
Widget buildInput(BuildContext context) {
return Container(
margin: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom),
child: Row(
children: <Widget>[
// Edit text
Flexible(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 8.0),
child: TextField(
style: TextStyle(fontSize: 15.0),
controller: _messageController,
decoration: InputDecoration.collapsed(
hintText: 'Type your message...',
hintStyle: TextStyle(color: Colors.grey),
),
),
),
),
// Button send message
Material(
child: Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: IconButton(
icon: Icon(Icons.send),
onPressed: _sendMessage,
),
),
color: Colors.white,
),
],
),
width: double.infinity,
height: 50.0,
decoration:
BoxDecoration(border: Border(top: BorderSide(color: Colors.blueGrey, width: 0.5)), color: Colors.white),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.