flutter_desktop: fix minmax on first click

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-11-01 19:56:46 +08:00
parent 5df850e7de
commit b63f1b33a8

View File

@ -176,7 +176,8 @@ typedef TabBuilder = Widget Function(
typedef LabelGetter = Rx<String> Function(String key);
/// [_lastClickTime], help to handle double click
int _lastClickTime = DateTime.now().millisecondsSinceEpoch;
int _lastClickTime =
DateTime.now().millisecondsSinceEpoch - kDesktopDoubleClickTimeMilli - 1000;
class DesktopTab extends StatelessWidget {
final bool showTabBar;