From dcf3e312cffbed2cbc20bacccfdca2a19853c345 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 17 Jan 2020 10:47:30 +0100 Subject: [PATCH] Chat design improvements --- lib/views/chat.dart | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index a08dc67..c4c7a6a 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -294,7 +294,11 @@ class _ChatState extends State { const PopupMenuItem( value: "file", child: ListTile( - leading: Icon(Icons.attach_file), + leading: CircleAvatar( + backgroundColor: Colors.green, + foregroundColor: Colors.white, + child: Icon(Icons.attachment), + ), title: Text('Send file'), contentPadding: EdgeInsets.all(0), ), @@ -302,7 +306,11 @@ class _ChatState extends State { const PopupMenuItem( value: "image", child: ListTile( - leading: Icon(Icons.image), + leading: CircleAvatar( + backgroundColor: Colors.blue, + foregroundColor: Colors.white, + child: Icon(Icons.image), + ), title: Text('Send image'), contentPadding: EdgeInsets.all(0), ), @@ -310,7 +318,11 @@ class _ChatState extends State { const PopupMenuItem( value: "camera", child: ListTile( - leading: Icon(Icons.camera), + leading: CircleAvatar( + backgroundColor: Colors.purple, + foregroundColor: Colors.white, + child: Icon(Icons.camera), + ), title: Text('Open camera'), contentPadding: EdgeInsets.all(0), ), @@ -320,7 +332,7 @@ class _ChatState extends State { SizedBox(width: 8), Expanded( child: Padding( - padding: const EdgeInsets.symmetric(vertical: 8.0), + padding: const EdgeInsets.symmetric(vertical: 4.0), child: TextField( minLines: 1, maxLines: kIsWeb ? 1 : 8,