Browse Source

update closed UI

pull/18/head
Sun 4 years ago
parent
commit
49bf4172db
  1. 2
      lib/apps/chat/detail.dart
  2. 5
      lib/apps/group_chat/detail.dart

2
lib/apps/chat/detail.dart

@ -356,6 +356,8 @@ class _ChatDetailState extends State<ChatDetail> { @@ -356,6 +356,8 @@ class _ChatDetailState extends State<ChatDetail> {
child: Center(child: Text(lang.reconnect, style: TextStyle(color: color.primary))),
)
),
if (friend.isClosed)
const SizedBox(height: 20.0),
if (!friend.isClosed && session.online != OnlineType.Lost)
Container(
padding: const EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),

5
lib/apps/group_chat/detail.dart

@ -351,8 +351,9 @@ class _GroupChatDetailState extends State<GroupChatDetail> { @@ -351,8 +351,9 @@ class _GroupChatDetailState extends State<GroupChatDetail> {
);
}
)),
if (!this.group.isClosed)
Container(
this.group.isClosed
? const SizedBox(height: 20.0)
: Container(
padding: const EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
child: Row(
children: [

Loading…
Cancel
Save