Chris Bracken ce68d97983
[macOS] Battery check in platform_channel sample (#123354)
Adds a check for the case where a device has no battery present. The
devicelab test expects the text "No battery." in the case where a device
has no battery. This is triggered by returning an error with a
NO_BATTERY error code.

Also applies some cosmetic fixes:
* Amends a copyright notice to Flutter instead of com.example
* Deletes an unused test.

Issue: https://github.com/flutter/flutter/issues/79204
2023-03-23 15:19:10 -07:00
..
2023-03-23 19:03:57 +00:00
2023-03-23 19:03:57 +00:00
2023-03-23 19:03:57 +00:00
2023-03-23 19:03:57 +00:00
2023-03-23 19:03:57 +00:00
2023-03-23 19:03:57 +00:00
2023-03-23 19:03:57 +00:00

Flutter Examples

This directory contains several examples of using Flutter. To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

For additional samples, see the flutter/samples repo.

Available examples include:

Notes

Note on Gradle wrapper files in .gitignore:

Gradle wrapper files should normally be checked into source control. The example projects don't do that to avoid having several copies of the wrapper binary in the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling, and the wrapper files are .gitignore'd to avoid making the Flutter repository dirty as a side effect of running the examples.