Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
  • Loading branch information
Leigha Jarett and sfshaza2 authored Apr 12, 2023
commit 563bc3418fba6df4a330e433aa45c840aaf7d475
14 changes: 7 additions & 7 deletions src/resources/platform-adaptations.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ Therefore a fallback font is used when running on Android
if the platform is debug-overridden to iOS or the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious. What does "...if the platform is debug-overridden to iOS..." mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure...

@MitchellGoodwin could you explain by chance?

Copy link
Contributor

@MitchellGoodwin MitchellGoodwin Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this means if the platform is set by the code rather than by letting Flutter determine which platform it's running in. So if you add to your theme platform: TargetPlatform.iOS

default Cupertino theme is used.

You may choose to adapt the text styling in Material
You might choose to adapt the text styling in Material
widgets to match the default text styling on iOS.
You can see widget specific examples in the
You can see widget-specific examples in the
[UI Component section][] below.

<div class="container">
Expand Down Expand Up @@ -567,15 +567,15 @@ Your feedback is welcomed on [issue #8427][].

### Widgets with .adaptive() constructors

There are several widgets that support`.adaptive()` constructors.
Several widgets support `.adaptive()` constructors.
Adaptive constructors substitute the corresponding Cupertino components
when the app is run on an iOS device.

The following widgets are used primarily for input,
selection and to display system information.
Widgets in the following table are used primarily for input,
selection, and to display system information.
Because these controls are tightly integrated with the operating system,
users have been trained to recognize
and respond to them. So, it's recommended to follow the platform conventions.
users have been trained to recognize and respond to them.
Therefore, we recommend that you follow platform conventions.


| Material Widget | Cupertino Widget | Adaptive Constructor |
Expand Down