-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add Windows to platform channel example #7328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds a Windows section to the existing iOS and Android section, following the same structure as those examples, and using the code from flutter/flutter#106754 Part of flutter/flutter#79204
| if device.batteryState == UIDevice.BatteryState.unknown { | ||
| result(FlutterError(code: "UNAVAILABLE", | ||
| message: "Battery info unavailable", | ||
| message: "Battery level not available.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an opportunistic fix; there was a pointless minor inconsistency between the Android and iOS examples here, so I unified them to use the same message.
sfshaza2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Thanks again, @stuartmorgan!
This adds a Linux section to the example implementation instructions, following the same structure as the existing examples, and using the code from flutter/flutter#108068 This is the Linux equivalent of #7328 Part of flutter/flutter#79204
* Add Linux to platform channel example This adds a Linux section to the example implementation instructions, following the same structure as the existing examples, and using the code from flutter/flutter#108068 This is the Linux equivalent of #7328 Part of flutter/flutter#79204 * Update src/development/platform-integration/platform-channels.md Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> * Update src/development/platform-integration/platform-channels.md Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> * Update src/development/platform-integration/platform-channels.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/development/platform-integration/platform-channels.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/development/platform-integration/platform-channels.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> Co-authored-by: Parker Lougheed <parlough@gmail.com> Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
This adds a macOS section to the example implementation instructions, following the same structure as the existing examples, and using the code from flutter/flutter#123141 This is the macOS equivalent of #7328 and #8127 Fixes flutter/flutter#79204
This adds a macOS section to the example implementation instructions, following the same structure as the existing examples, and using the code from flutter/flutter#123141 This is the macOS equivalent of #7328 and #8127 Fixes flutter/flutter#79204 ## Presubmit checklist - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/master/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
This adds a Windows section to the existing iOS and Android section, following the same structure as those examples, and using the code from flutter/flutter#106754
Part of flutter/flutter#79204
Presubmit checklist