From e6fa8655819e9b92740911b49e8215efc6e52dab Mon Sep 17 00:00:00 2001 From: davidhicks980 <59215665+davidhicks980@users.noreply.github.com> Date: Tue, 21 May 2024 12:12:05 -0400 Subject: [PATCH] Removed brand references from MenuAnchor.dart (#148760) Rephrases identifier from _isApple to _isCupertino. @gspencergoog and @victorsanni --- packages/flutter/lib/src/material/menu_anchor.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/material/menu_anchor.dart b/packages/flutter/lib/src/material/menu_anchor.dart index d0d7f56afa..b01395a8ee 100644 --- a/packages/flutter/lib/src/material/menu_anchor.dart +++ b/packages/flutter/lib/src/material/menu_anchor.dart @@ -3629,7 +3629,7 @@ bool _debugMenuInfo(String message, [Iterable? details]) { } /// Whether [defaultTargetPlatform] is an Apple platform (Mac or iOS). -bool get _isApple { +bool get _isCupertino { switch (defaultTargetPlatform) { case TargetPlatform.iOS: case TargetPlatform.macOS: @@ -3648,7 +3648,7 @@ bool get _isApple { /// render them in a particular order defined by Apple's human interface /// guidelines, and format them so that the modifier keys always align. bool get _usesSymbolicModifiers { - return _isApple; + return _isCupertino; } @@ -3657,7 +3657,7 @@ bool get _platformSupportsAccelerators { // different set of characters to be generated, and the native menus don't // support accelerators anyhow, so we just disable accelerators on these // platforms. - return !_isApple; + return !_isCupertino; } // BEGIN GENERATED TOKEN PROPERTIES - Menu