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

This commit is contained in:
grummbeer 2024-02-13 15:10:32 +01:00 committed by GitHub
parent dc24868800
commit 3f7244f23f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -336,15 +336,26 @@ class _PeerTabPageState extends State<PeerTabPage>
Widget createMultiSelectionBar() { Widget createMultiSelectionBar() {
final model = Provider.of<PeerTabModel>(context); final model = Provider.of<PeerTabModel>(context);
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
deleteSelection(), Offstage(
addSelectionToFav(), offstage: model.selectedPeers.isEmpty,
addSelectionToAb(), child: Row(
editSelectionTags(), children: [
Expanded(child: Container()), deleteSelection(),
selectionCount(model.selectedPeers.length), addSelectionToFav(),
selectAll(), addSelectionToAb(),
closeSelection(), editSelectionTags(),
],
),
),
Row(
children: [
selectionCount(model.selectedPeers.length),
selectAll(),
closeSelection(),
],
)
], ],
); );
} }