Enable view focus

https://github.com/flutter/flutter/issues/153022

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
Juanjo Tugores 2024-11-20 21:49:05 -08:00 committed by GitHub
parent 504bff9b26
commit 69da421d98

View File

@ -12,11 +12,11 @@ final class ViewFocusBinding {
ViewFocusBinding(this._viewManager, this._onViewFocusChange); ViewFocusBinding(this._viewManager, this._onViewFocusChange);
/// Wether [FlutterView] focus changes will be reported and performed. /// Whether [FlutterView] focus changes will be reported and performed.
/// ///
/// DO NOT rely on this bit as it will go away soon. You're warned :)! /// DO NOT rely on this bit as it will go away soon. You're warned :)!
@visibleForTesting @visibleForTesting
static bool isEnabled = false; static bool isEnabled = true;
final FlutterViewManager _viewManager; final FlutterViewManager _viewManager;
final ui.ViewFocusChangeCallback _onViewFocusChange; final ui.ViewFocusChangeCallback _onViewFocusChange;