mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Use Mountain View/Cupertino terms in drawer on iOS (#12699)
Use our platform identifiers rather than OS names for the platform switcher radio buttons in the drawer as noted in section 2.3.10 of the App Store review guidelines. See: https://developer.apple.com/app-store/review/guidelines/
This commit is contained in:
parent
021a268852
commit
d69fcea1a8
@ -171,7 +171,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
final Widget mountainViewItem = new RadioListTile<TargetPlatform>(
|
||||
// on iOS, we don't want to show an Android phone icon
|
||||
secondary: new Icon(defaultTargetPlatform == TargetPlatform.iOS ? Icons.star : Icons.phone_android),
|
||||
title: const Text('Android'),
|
||||
title: new Text(defaultTargetPlatform == TargetPlatform.iOS ? 'Mountain View' : 'Android'),
|
||||
value: TargetPlatform.android,
|
||||
groupValue: Theme.of(context).platform,
|
||||
onChanged: onPlatformChanged,
|
||||
@ -181,7 +181,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
final Widget cupertinoItem = new RadioListTile<TargetPlatform>(
|
||||
// on iOS, we don't want to show the iPhone icon
|
||||
secondary: new Icon(defaultTargetPlatform == TargetPlatform.iOS ? Icons.star_border : Icons.phone_iphone),
|
||||
title: const Text('iOS'),
|
||||
title: new Text(defaultTargetPlatform == TargetPlatform.iOS ? 'Cupertino' : 'iOS'),
|
||||
value: TargetPlatform.iOS,
|
||||
groupValue: Theme.of(context).platform,
|
||||
onChanged: onPlatformChanged,
|
||||
@ -238,11 +238,12 @@ class GalleryDrawer extends StatelessWidget {
|
||||
children: <TextSpan>[
|
||||
new TextSpan(
|
||||
style: aboutTextStyle,
|
||||
text: 'Flutter is an early-stage, open-source project to help '
|
||||
'developers build high-performance, high-fidelity, mobile '
|
||||
'apps for iOS and Android from a single codebase. This '
|
||||
"gallery is a preview of Flutter's many widgets, behaviors, "
|
||||
'animations, layouts, and more. Learn more about Flutter at '
|
||||
text: 'Flutter is an early-stage, open-source project to help developers'
|
||||
'build high-performance, high-fidelity, mobile apps for '
|
||||
'${defaultTargetPlatform == TargetPlatform.iOS ? 'multiple platforms' : 'iOS and Android'} '
|
||||
'from a single codebase. This gallery is a preview of '
|
||||
"Flutter's many widgets, behaviors, animations, layouts, "
|
||||
'and more. Learn more about Flutter at '
|
||||
),
|
||||
new LinkTextSpan(
|
||||
style: linkStyle,
|
||||
|
Loading…
Reference in New Issue
Block a user