Skip to content

Conversation

@cbracken
Copy link
Member

Generally, we should always use default-less switches for
platform-specific behaviour so we're forced to make a conscious decision
on each instance of such behaviour any time we add support for a new
platform.

Generally, we should always use default-less switches for
platform-specific behaviour so we're forced to make a conscious decision
on each instance of such behaviour any time we add support for a new
platform.
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@cbracken cbracken changed the title Replace platform check with swtich Replace platform check with switch Nov 26, 2018
@zoechi zoechi added the f: material design flutter/packages/flutter/material repository. label Nov 28, 2018
@cbracken cbracken merged commit 9a7b1a7 into flutter:master Jan 16, 2019
@cbracken cbracken deleted the platform-switch branch January 16, 2019 18:31
kangwang1988 pushed a commit to XianyuTech/flutter that referenced this pull request Feb 12, 2019
Generally, we should always use default-less switches for
platform-specific behaviour so we're forced to make a conscious decision
on each instance of such behaviour any time we add support for a new
platform.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: material design flutter/packages/flutter/material repository.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants