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> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text('Jarvis', Container(
style: TextStyle(fontWeight: FontWeight.bold), height: 20.0,
), child: Text('Jarvis',
style: TextStyle(fontWeight: FontWeight.bold),
)),
SizedBox(height: 5.0), SizedBox(height: 5.0),
Text(lang.onlineActive, Container(
style: TextStyle(color: color.onPrimary.withOpacity(0.5), fontSize: 12.0)) 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> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Container(
friend.name, height: 20.0,
style: TextStyle(fontWeight: FontWeight.bold), child: Text(
), friend.name,
style: TextStyle(fontWeight: FontWeight.bold),
)),
SizedBox(height: 5.0), SizedBox(height: 5.0),
Text(friend.isClosed Container(
? lang.closed height: 15.0,
: session.onlineLang(lang), child: Text(friend.isClosed
style: TextStyle( ? lang.closed
color: color.onPrimary.withOpacity(0.5), : session.onlineLang(lang),
fontSize: 12.0)) 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> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Container(
this.group!.name, height: 20.0,
style: TextStyle(fontWeight: FontWeight.bold), child: Text(
this.group!.name,
style: TextStyle(fontWeight: FontWeight.bold),
),
), ),
const SizedBox(height: 5.0), const SizedBox(height: 5.0),
Text(this.group!.isClosed Container(
? lang.closed height: 15.0,
: session.onlineLang(lang), child: Text(this.group!.isClosed
style: TextStyle( ? lang.closed
color: color.onPrimary.withOpacity(0.5), : session.onlineLang(lang),
fontSize: 12.0)) style: TextStyle(
color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0))
)
], ],
), ),
), ),

Loading…
Cancel
Save