Removed brand references from MenuAnchor.dart (#148760)
Rephrases identifier from _isApple to _isCupertino. @gspencergoog and @victorsanni
This commit is contained in:
parent
b6bed5aaf2
commit
e6fa865581
@ -3629,7 +3629,7 @@ bool _debugMenuInfo(String message, [Iterable<String>? details]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Whether [defaultTargetPlatform] is an Apple platform (Mac or iOS).
|
/// Whether [defaultTargetPlatform] is an Apple platform (Mac or iOS).
|
||||||
bool get _isApple {
|
bool get _isCupertino {
|
||||||
switch (defaultTargetPlatform) {
|
switch (defaultTargetPlatform) {
|
||||||
case TargetPlatform.iOS:
|
case TargetPlatform.iOS:
|
||||||
case TargetPlatform.macOS:
|
case TargetPlatform.macOS:
|
||||||
@ -3648,7 +3648,7 @@ bool get _isApple {
|
|||||||
/// render them in a particular order defined by Apple's human interface
|
/// render them in a particular order defined by Apple's human interface
|
||||||
/// guidelines, and format them so that the modifier keys always align.
|
/// guidelines, and format them so that the modifier keys always align.
|
||||||
bool get _usesSymbolicModifiers {
|
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
|
// different set of characters to be generated, and the native menus don't
|
||||||
// support accelerators anyhow, so we just disable accelerators on these
|
// support accelerators anyhow, so we just disable accelerators on these
|
||||||
// platforms.
|
// platforms.
|
||||||
return !_isApple;
|
return !_isCupertino;
|
||||||
}
|
}
|
||||||
|
|
||||||
// BEGIN GENERATED TOKEN PROPERTIES - Menu
|
// BEGIN GENERATED TOKEN PROPERTIES - Menu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user