mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
- Fixes #1899 - Don't use BuildContext in async. - Disabled build script for `next-gen-ui-demo` for master channel because dependency gap does not compile. - Improve use BuildContext in `place_tracker`, added checks to verify that the context is still mounted, and avoid passing BuildContext as parameter. ## Pre-launch Checklist - [ ] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [ ] I signed the [CLA]. - [ ] I read the [Contributors Guide]. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
federated_plugin
A Flutter plugin sample that shows how to implement a federated plugin to retrieve current battery level on different platforms.
This sample is currently being built. Not all platforms and functionality are in place.
Goals for this sample
- Show how to develop a federated plugin which supports Android, iOS, web & desktop.
- Demonstrate how to use Platform Channels to communicate with different platforms including Web and Desktop.
Questions/issues
If you have a general question about Flutter, the best places to go are:
If you run into an issue with the sample itself, please file an issue here.