Browse Source

fixed chat header height

pull/18/head
Sun 4 years ago
parent
commit
30bdac87e5
  1. 15
      lib/apps/assistant/page.dart
  2. 25
      lib/apps/chat/detail.dart
  3. 24
      lib/apps/group_chat/detail.dart

15
lib/apps/assistant/page.dart

@ -180,12 +180,17 @@ class _AssistantDetailState extends State<AssistantDetail> { @@ -180,12 +180,17 @@ class _AssistantDetailState extends State<AssistantDetail> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Jarvis',
style: TextStyle(fontWeight: FontWeight.bold),
),
Container(
height: 20.0,
child: Text('Jarvis',
style: TextStyle(fontWeight: FontWeight.bold),
)),
SizedBox(height: 5.0),
Text(lang.onlineActive,
style: TextStyle(color: color.onPrimary.withOpacity(0.5), fontSize: 12.0))
Container(
height: 15.0,
child: Text(lang.onlineActive,
style: TextStyle(color: color.onPrimary.withOpacity(0.5), fontSize: 12.0))
)
],
),
),

25
lib/apps/chat/detail.dart

@ -197,17 +197,22 @@ class _ChatDetailState extends State<ChatDetail> { @@ -197,17 +197,22 @@ class _ChatDetailState extends State<ChatDetail> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
friend.name,
style: TextStyle(fontWeight: FontWeight.bold),
),
Container(
height: 20.0,
child: Text(
friend.name,
style: TextStyle(fontWeight: FontWeight.bold),
)),
SizedBox(height: 5.0),
Text(friend.isClosed
? lang.closed
: session.onlineLang(lang),
style: TextStyle(
color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0))
Container(
height: 15.0,
child: Text(friend.isClosed
? lang.closed
: session.onlineLang(lang),
style: TextStyle(
color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0))
)
],
),
),

24
lib/apps/group_chat/detail.dart

@ -202,17 +202,23 @@ class _GroupChatDetailState extends State<GroupChatDetail> { @@ -202,17 +202,23 @@ class _GroupChatDetailState extends State<GroupChatDetail> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
this.group!.name,
style: TextStyle(fontWeight: FontWeight.bold),
Container(
height: 20.0,
child: Text(
this.group!.name,
style: TextStyle(fontWeight: FontWeight.bold),
),
),
const SizedBox(height: 5.0),
Text(this.group!.isClosed
? lang.closed
: session.onlineLang(lang),
style: TextStyle(
color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0))
Container(
height: 15.0,
child: Text(this.group!.isClosed
? lang.closed
: session.onlineLang(lang),
style: TextStyle(
color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0))
)
],
),
),

Loading…
Cancel
Save