Change scrolling screend delay from 1000ms to 100ms.

This commit is contained in:
Ivan Murashov
2018-03-12 22:55:10 +03:00
parent 02322a73ef
commit a157b69bda

View File

@@ -365,7 +365,7 @@ class EnsureVisibleWhenFocusedState extends State<EnsureVisibleWhenFocused> {
// TODO: position doesn't seem to notify listeners when metrics change, // TODO: position doesn't seem to notify listeners when metrics change,
// perhaps a NotificationListener around the scrollable could avoid // perhaps a NotificationListener around the scrollable could avoid
// the need insert a delay here. // the need insert a delay here.
await new Future.delayed(const Duration(milliseconds: 1000)); await new Future.delayed(const Duration(milliseconds: 100));
if (!widget.focusNode.hasFocus) if (!widget.focusNode.hasFocus)
return; return;