[EditableText] honor the "brieflyShowPassword" system setting (#97769)
This commit is contained in:
@@ -271,6 +271,15 @@ class TestWindow implements ui.SingletonFlutterWindow {
|
||||
platformDispatcher.onTextScaleFactorChanged = callback;
|
||||
}
|
||||
|
||||
@override
|
||||
bool get brieflyShowPassword => _brieflyShowPasswordTestValue ?? platformDispatcher.brieflyShowPassword;
|
||||
bool? _brieflyShowPasswordTestValue;
|
||||
/// Hides the real [brieflyShowPassword] and reports the given
|
||||
/// `brieflyShowPasswordTestValue` instead.
|
||||
set brieflyShowPasswordTestValue(bool brieflyShowPasswordTestValue) { // ignore: avoid_setters_without_getters
|
||||
_brieflyShowPasswordTestValue = brieflyShowPasswordTestValue;
|
||||
}
|
||||
|
||||
@override
|
||||
ui.FrameCallback? get onBeginFrame => platformDispatcher.onBeginFrame;
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user