Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Peers. Multiselect. Provide actions only if peers selected (#7122)

grummbeer3f7244f23f94
diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart
index 0bc621d31..d3f2c01cd 100644
--- a/flutter/lib/common/widgets/peer_tab_page.dart
+++ b/flutter/lib/common/widgets/peer_tab_page.dart
@@ -336,15 +336,26 @@ class _PeerTabPageState extends State<PeerTabPage>
Widget createMultiSelectionBar() {
final model = Provider.of<PeerTabModel>(context);
return Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
- deleteSelection(),
- addSelectionToFav(),
- addSelectionToAb(),
- editSelectionTags(),
- Expanded(child: Container()),
- selectionCount(model.selectedPeers.length),
- selectAll(),
- closeSelection(),
+ Offstage(
+ offstage: model.selectedPeers.isEmpty,
+ child: Row(
+ children: [
+ deleteSelection(),
+ addSelectionToFav(),
+ addSelectionToAb(),
+ editSelectionTags(),
+ ],
+ ),
+ ),
+ Row(
+ children: [
+ selectionCount(model.selectedPeers.length),
+ selectAll(),
+ closeSelection(),
+ ],
+ )
],
);
}