layoutAsSecondary method
- bool floating = false,
Invokes unfocus for the Participants of me, moving it to the paneled group.
If floating
is true
, then sets the secondaryAlignment to null
, or
otherwise to Alignment.centerRight.
Implementation
void layoutAsSecondary({bool floating = false}) {
showHeader.value = true;
isCursorHidden.value = false;
final mine = [...locals, ...focused].where((e) => e.member == me);
for (final Participant p in mine) {
unfocus(p);
}
if (floating) {
if (secondaryAlignment.value != null) {
secondaryBottom.value = 10;
secondaryRight.value = 10;
secondaryLeft.value = null;
secondaryTop.value = null;
secondaryAlignment.value = null;
}
} else {
secondaryAlignment.value = Alignment.centerRight;
}
}