Skip to content

Add ohos platform support in platform_utils.dart - #205

Closed
sky22333 wants to merge 1 commit into
yako-dev:masterfrom
wanan9999:master
Closed

sky22333 wants to merge 1 commit into
yako-dev:masterfrom
wanan9999:master

Conversation

@sky22333

Copy link
Copy Markdown

Add support for ohos platform to return iOS style.

Add support for ohos platform to return iOS style.
@yadaniyil

Copy link
Copy Markdown
Contributor

Thanks for the PR, @sky22333! I can't merge it as is: TargetPlatform.ohos only exists in the OpenHarmony fork of Flutter, so on standard Flutter this line doesn't compile and would break the package for everyone.

Instead, 4.0.0 falls back to the iOS style for any platform it doesn't know (#208). So the package compiles on OpenHarmony, and ohos gets the iOS look like you wanted. You can also set it yourself with SettingsList(platform: DevicePlatform.iOS, ...). Closing this in favor of that change.

@yadaniyil yadaniyil closed this Sep 24, 2026
@sky22333

Copy link
Copy Markdown
Author

Thanks

iWisp360 pushed a commit to iWisp360/flutter-settings-ui that referenced this pull request Sep 30, 2026
- Fall back to the Cupertino style for platforms that only exist in
  Flutter forks, so the package compiles on OpenHarmony (yako-dev#205)
- README: SettingsTile shows a value without a chevron (yako-dev#204), the
  navigation chevron is iOS/macOS/Windows only, value width on iOS
- CHANGELOG: yako-dev#201, yako-dev#202, yako-dev#203, yako-dev#204, yako-dev#205

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants