Skip to content

Commit e6fa865

Browse files
Removed brand references from MenuAnchor.dart (#148760)
Rephrases identifier from _isApple to _isCupertino. @gspencergoog and @victorsanni
1 parent b6bed5a commit e6fa865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flutter/lib/src/material/menu_anchor.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,7 +3629,7 @@ bool _debugMenuInfo(String message, [Iterable<String>? details]) {
36293629
}
36303630

36313631
/// Whether [defaultTargetPlatform] is an Apple platform (Mac or iOS).
3632-
bool get _isApple {
3632+
bool get _isCupertino {
36333633
switch (defaultTargetPlatform) {
36343634
case TargetPlatform.iOS:
36353635
case TargetPlatform.macOS:
@@ -3648,7 +3648,7 @@ bool get _isApple {
36483648
/// render them in a particular order defined by Apple's human interface
36493649
/// guidelines, and format them so that the modifier keys always align.
36503650
bool get _usesSymbolicModifiers {
3651-
return _isApple;
3651+
return _isCupertino;
36523652
}
36533653

36543654

@@ -3657,7 +3657,7 @@ bool get _platformSupportsAccelerators {
36573657
// different set of characters to be generated, and the native menus don't
36583658
// support accelerators anyhow, so we just disable accelerators on these
36593659
// platforms.
3660-
return !_isApple;
3660+
return !_isCupertino;
36613661
}
36623662

36633663
// BEGIN GENERATED TOKEN PROPERTIES - Menu

0 commit comments

Comments
 (0)