add ui for new list view

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
Sahil Yeole 2023-10-24 22:14:01 +05:30
parent 69f643447d
commit 81fe90f605

View File

@ -191,9 +191,11 @@ class _PeersViewState extends State<_PeersView> with WindowListener {
return isDesktop
? Obx(
() => SizedBox(
width: 220,
width: peerCardUiType.value != PeerUiType.list
? 220
: MediaQuery.of(context).size.width - 227,
height:
peerCardUiType.value == PeerUiType.grid ? 140 : 42,
peerCardUiType.value == PeerUiType.grid ? 140 : peerCardUiType.value != PeerUiType.list ? 42 : 45,
child: visibilityChild,
),
)