flutter_desktop: fix minmax on first click
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
5df850e7de
commit
b63f1b33a8
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue