flutter_desktop: fix minmax on first click
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
5df850e7de
commit
b63f1b33a8
@ -176,7 +176,8 @@ typedef TabBuilder = Widget Function(
|
|||||||
typedef LabelGetter = Rx<String> Function(String key);
|
typedef LabelGetter = Rx<String> Function(String key);
|
||||||
|
|
||||||
/// [_lastClickTime], help to handle double click
|
/// [_lastClickTime], help to handle double click
|
||||||
int _lastClickTime = DateTime.now().millisecondsSinceEpoch;
|
int _lastClickTime =
|
||||||
|
DateTime.now().millisecondsSinceEpoch - kDesktopDoubleClickTimeMilli - 1000;
|
||||||
|
|
||||||
class DesktopTab extends StatelessWidget {
|
class DesktopTab extends StatelessWidget {
|
||||||
final bool showTabBar;
|
final bool showTabBar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user