An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
remove setState
Sahil Yeole0e702d8693a7
diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dartindex 7aad7269a..970e74b73 100644--- a/flutter/lib/common/widgets/peer_tab_page.dart+++ b/flutter/lib/common/widgets/peer_tab_page.dart@@ -765,8 +765,6 @@ class PeerViewDropdown extends StatefulWidget {}class _PeerViewDropdownState extends State<PeerViewDropdown> {- RelativeRect menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);-@overrideWidget build(BuildContext context) {final List<PeerUiType> types = [PeerUiType.grid, PeerUiType.tile, PeerUiType.list];@@ -806,6 +804,7 @@ class _PeerViewDropdownState extends State<PeerViewDropdown> {))));}+ var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);return _hoverAction(context: context,child: Tooltip(@@ -821,17 +820,14 @@ class _PeerViewDropdownState extends State<PeerViewDropdown> {onTapDown: (details) {final x = details.globalPosition.dx;final y = details.globalPosition.dy;- setState(() {- menuPos = RelativeRect.fromLTRB(x, y, x, y);- });- showMenu(- context: context,- position: menuPos,- items: items,- elevation: 8,- );+ menuPos = RelativeRect.fromLTRB(x, y, x, y);},- onTap: () => {}+ onTap: () => showMenu(+ context: context,+ position: menuPos,+ items: items,+ elevation: 8,+ ));}}