Update FocusNode documentation (#126331)
## Description This PR adds some details in FocusNode documentation to explain more precisely when listeners are notified. ## Related Issue Fixes https://github.com/flutter/flutter/issues/126149 ## Tests Documentation only.
This commit is contained in:
parent
58454e9e31
commit
a800edfff9
@ -298,7 +298,9 @@ enum UnfocusDisposition {
|
||||
/// [ancestors] and [descendants] accessors.
|
||||
///
|
||||
/// [FocusNode]s are [ChangeNotifier]s, so a listener can be registered to
|
||||
/// receive a notification when the focus changes. If the [Focus] and
|
||||
/// receive a notification when the focus changes. Listeners will also be
|
||||
/// notified when [skipTraversal], [canRequestFocus], [descendantsAreFocusable],
|
||||
/// and [descendantsAreTraversable] properties are updated. If the [Focus] and
|
||||
/// [FocusScope] widgets are being used to manage the nodes, consider
|
||||
/// establishing an [InheritedWidget] dependency on them by calling [Focus.of]
|
||||
/// or [FocusScope.of] instead. [FocusNode.hasFocus] can also be used to
|
||||
|
Loading…
x
Reference in New Issue
Block a user