fix: tab, disable dragging (#8228)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-06-01 00:10:18 +08:00 committed by GitHub
parent bd7790c1eb
commit df36580451
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -921,7 +921,7 @@ class _ListView extends StatelessWidget {
final label = labelGetter == null
? Rx<String>(tab.label)
: labelGetter!(tab.label);
return VisibilityDetector(
final child = VisibilityDetector(
key: ValueKey(tab.key),
onVisibilityChanged: onVisibilityChanged,
child: _Tab(
@ -954,6 +954,10 @@ class _ListView extends StatelessWidget {
selectedBorderColor: selectedBorderColor,
),
);
return GestureDetector(
onPanStart: (e) {},
child: child,
);
}).toList()));
}
}