Browse Source

fixed chat header height

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

11
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(
height: 20.0,
child: Text('Jarvis',
style: TextStyle(fontWeight: FontWeight.bold), style: TextStyle(fontWeight: FontWeight.bold),
), )),
SizedBox(height: 5.0), SizedBox(height: 5.0),
Text(lang.onlineActive, Container(
height: 15.0,
child: Text(lang.onlineActive,
style: TextStyle(color: color.onPrimary.withOpacity(0.5), fontSize: 12.0)) style: TextStyle(color: color.onPrimary.withOpacity(0.5), fontSize: 12.0))
)
], ],
), ),
), ),

11
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(
height: 20.0,
child: Text(
friend.name, friend.name,
style: TextStyle(fontWeight: FontWeight.bold), style: TextStyle(fontWeight: FontWeight.bold),
), )),
SizedBox(height: 5.0), SizedBox(height: 5.0),
Text(friend.isClosed Container(
height: 15.0,
child: Text(friend.isClosed
? lang.closed ? lang.closed
: session.onlineLang(lang), : session.onlineLang(lang),
style: TextStyle( style: TextStyle(
color: color.onPrimary.withOpacity(0.5), color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0)) fontSize: 12.0))
)
], ],
), ),
), ),

10
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(
height: 20.0,
child: Text(
this.group!.name, this.group!.name,
style: TextStyle(fontWeight: FontWeight.bold), style: TextStyle(fontWeight: FontWeight.bold),
), ),
),
const SizedBox(height: 5.0), const SizedBox(height: 5.0),
Text(this.group!.isClosed Container(
height: 15.0,
child: Text(this.group!.isClosed
? lang.closed ? lang.closed
: session.onlineLang(lang), : session.onlineLang(lang),
style: TextStyle( style: TextStyle(
color: color.onPrimary.withOpacity(0.5), color: color.onPrimary.withOpacity(0.5),
fontSize: 12.0)) fontSize: 12.0))
)
], ],
), ),
), ),

Loading…
Cancel
Save