Chat design improvements

This commit is contained in:
Christian Pauly 2020-01-17 10:47:30 +01:00
parent dc3b86bbd0
commit dcf3e312cf

View file

@ -294,7 +294,11 @@ class _ChatState extends State<Chat> {
const PopupMenuItem<String>( const PopupMenuItem<String>(
value: "file", value: "file",
child: ListTile( child: ListTile(
leading: Icon(Icons.attach_file), leading: CircleAvatar(
backgroundColor: Colors.green,
foregroundColor: Colors.white,
child: Icon(Icons.attachment),
),
title: Text('Send file'), title: Text('Send file'),
contentPadding: EdgeInsets.all(0), contentPadding: EdgeInsets.all(0),
), ),
@ -302,7 +306,11 @@ class _ChatState extends State<Chat> {
const PopupMenuItem<String>( const PopupMenuItem<String>(
value: "image", value: "image",
child: ListTile( child: ListTile(
leading: Icon(Icons.image), leading: CircleAvatar(
backgroundColor: Colors.blue,
foregroundColor: Colors.white,
child: Icon(Icons.image),
),
title: Text('Send image'), title: Text('Send image'),
contentPadding: EdgeInsets.all(0), contentPadding: EdgeInsets.all(0),
), ),
@ -310,7 +318,11 @@ class _ChatState extends State<Chat> {
const PopupMenuItem<String>( const PopupMenuItem<String>(
value: "camera", value: "camera",
child: ListTile( child: ListTile(
leading: Icon(Icons.camera), leading: CircleAvatar(
backgroundColor: Colors.purple,
foregroundColor: Colors.white,
child: Icon(Icons.camera),
),
title: Text('Open camera'), title: Text('Open camera'),
contentPadding: EdgeInsets.all(0), contentPadding: EdgeInsets.all(0),
), ),
@ -320,7 +332,7 @@ class _ChatState extends State<Chat> {
SizedBox(width: 8), SizedBox(width: 8),
Expanded( Expanded(
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0), padding: const EdgeInsets.symmetric(vertical: 4.0),
child: TextField( child: TextField(
minLines: 1, minLines: 1,
maxLines: kIsWeb ? 1 : 8, maxLines: kIsWeb ? 1 : 8,