header method
Implementation
Widget header() {
return SizedBox(
height: headerHeight,
child: Column(children: [
Row(children: [
const Spacer(),
button(widget.app, context, label: 'Member', onPressed: () {
openFlexibleDialog(
widget.app, context, '${widget.app.documentID}/chat',
title: 'Chat with one of these members',
child: MembersWidget(
blockedMembers: widget.blockedMembers,
membersType: widget.membersType,
app: widget.app,
selectedMember: (String memberId) async {
var room = await RoomHelper.getRoomForMembers(
widget.app.documentID,
widget.memberId,
[widget.memberId, memberId]);
selectRoom(context, room);
},
currentMemberId: widget.memberId,
),
buttons: [
dialogButton(widget.app, context,
label: 'Close',
onPressed: () => Navigator.of(context).pop()),
]);
}),
const Spacer(),
]),
divider(widget.app, context),
]));
}