From 9f56730409cb49063518a239019adbeae2df5c54 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Wed, 9 Dec 2020 17:13:59 +0530 Subject: [PATCH] fix: UI fixes --- lib/src/chat_info_screen.dart | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/lib/src/chat_info_screen.dart b/lib/src/chat_info_screen.dart index cbda9d9b..c961b0e0 100644 --- a/lib/src/chat_info_screen.dart +++ b/lib/src/chat_info_screen.dart @@ -55,6 +55,7 @@ class _ChatInfoScreenState extends State { maxHeight: 72.0, ), borderRadius: BorderRadius.circular(36.0), + showOnlineStatus: false, ), ), SizedBox(height: 15.0), @@ -304,7 +305,28 @@ class _ChatInfoScreenState extends State { } } - return alternativeWidget; + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + if (widget.user.online) + Material( + type: MaterialType.circle, + child: Container( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + constraints: BoxConstraints.tightFor( + width: 28, + height: 12, + ), + child: Material( + shape: CircleBorder(), + color: Color(0xff20E070), + ), + ), + color: Colors.white, + ), + alternativeWidget, + ], + ); } }