Peers. Multiselect. Provide actions only if peers selected (#7122)
This commit is contained in:
parent
dc24868800
commit
3f7244f23f
@ -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(),
|
||||||
|
],
|
||||||
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user