diff --git a/flutter/lib/common/widgets/my_group.dart b/flutter/lib/common/widgets/my_group.dart index cda640b1f..53f789ae1 100644 --- a/flutter/lib/common/widgets/my_group.dart +++ b/flutter/lib/common/widgets/my_group.dart @@ -37,7 +37,6 @@ class _MyGroupState extends State { }); Future buildBody(BuildContext context) async { - gFFI.groupModel.pull(); return Obx(() { if (gFFI.groupModel.groupLoading.value || gFFI.groupModel.peerLoading.value) { diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart index 7a27201b4..ffdee99a9 100644 --- a/flutter/lib/common/widgets/peer_tab_page.dart +++ b/flutter/lib/common/widgets/peer_tab_page.dart @@ -125,6 +125,16 @@ class _PeerTabPageState extends State } Widget _createSwitchBar(BuildContext context) { + getListener({required Key key, required Widget child, required int index}) { + if (isMobile) { + return ReorderableDelayedDragStartListener( + key: key, child: child, index: index); + } else { + return ReorderableDragStartListener( + key: key, child: child, index: index); + } + } + final model = Provider.of(context); int indexCounter = -1; return ReorderableListView( @@ -137,7 +147,7 @@ class _PeerTabPageState extends State scrollController: model.sc, children: model.visibleOrderedTabs.map((t) { indexCounter++; - return ReorderableDragStartListener( + return getListener( key: ValueKey(t), index: indexCounter, child: VisibilityDetector(