Reverts: flutter/flutter#148238 Initiated by: zanderso Reason for reverting: Failures in post submit https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8748025189669617649/+/u/run_test.dart_for_web_canvaskit_tests_shard_and_subshard_3/stdout Original PR Author: justinmc Reviewed By: {hellohuanlin} This change reverts the following previous change: Reland of https://github.com/flutter/flutter/pull/143002, which was reverted in https://github.com/flutter/flutter/pull/148237 due to unresolved docs references. Not sure why those weren't caught in presubmit. ``` dartdoc:stdout: Generating docs for package flutter... dartdoc:stderr: error: unresolved doc reference [TextInput.showSystemContextMenu] dartdoc:stderr: from widgets.MediaQueryData.supportsShowingSystemContextMenu: (file:///b/s/w/ir/x/w/flutter/packages/flutter/lib/src/widgets/media_query.dart:579:14) dartdoc:stderr: in documentation inherited from widgets.MediaQueryData.supportsShowingSystemContextMenu: (file:///b/s/w/ir/x/w/flutter/packages/flutter/lib/src/widgets/media_query.dart:579:14) dartdoc:stderr: error: unresolved doc reference [showSystemContextMenu] dartdoc:stderr: from services.SystemContextMenuController.hide: (file:///b/s/w/ir/x/w/flutter/packages/flutter/lib/src/services/text_input.dart:2554:16) dartdoc:stderr: error: unresolved doc reference [hideSystemContextMenu] dartdoc:stderr: from services.SystemContextMenuController.show: (file:///b/s/w/ir/x/w/flutter/packages/flutter/lib/src/services/text_input.dart:2509:16) ```
This commit is contained in:
@@ -307,18 +307,6 @@ class TestPlatformDispatcher implements PlatformDispatcher {
|
||||
_nativeSpellCheckServiceDefinedTestValue = null;
|
||||
}
|
||||
|
||||
@override
|
||||
bool get supportsShowingSystemContextMenu => _supportsShowingSystemContextMenu ?? _platformDispatcher.supportsShowingSystemContextMenu;
|
||||
bool? _supportsShowingSystemContextMenu;
|
||||
set supportsShowingSystemContextMenu(bool value) { // ignore: avoid_setters_without_getters
|
||||
_supportsShowingSystemContextMenu = value;
|
||||
}
|
||||
|
||||
/// Resets [supportsShowingSystemContextMenu] to the default value.
|
||||
void resetSupportsShowingSystemContextMenu() {
|
||||
_supportsShowingSystemContextMenu = null;
|
||||
}
|
||||
|
||||
@override
|
||||
bool get brieflyShowPassword => _brieflyShowPasswordTestValue ?? _platformDispatcher.brieflyShowPassword;
|
||||
bool? _brieflyShowPasswordTestValue;
|
||||
@@ -470,7 +458,6 @@ class TestPlatformDispatcher implements PlatformDispatcher {
|
||||
clearTextScaleFactorTestValue();
|
||||
clearNativeSpellCheckServiceDefined();
|
||||
resetBrieflyShowPassword();
|
||||
resetSupportsShowingSystemContextMenu();
|
||||
resetInitialLifecycleState();
|
||||
resetSystemFontFamily();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user