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,16 +336,27 @@ 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: [
Offstage(
offstage: model.selectedPeers.isEmpty,
child: Row(
children: [ children: [
deleteSelection(), deleteSelection(),
addSelectionToFav(), addSelectionToFav(),
addSelectionToAb(), addSelectionToAb(),
editSelectionTags(), editSelectionTags(),
Expanded(child: Container()), ],
),
),
Row(
children: [
selectionCount(model.selectedPeers.length), selectionCount(model.selectedPeers.length),
selectAll(), selectAll(),
closeSelection(), closeSelection(),
], ],
)
],
); );
} }