![]() 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 |
||
---|---|---|
.. | ||
android | ||
ios | ||
lib | ||
linux | ||
macos | ||
test_driver | ||
windows | ||
pubspec.yaml | ||
README.md |
Example of calling platform services from Flutter
This project demonstrates how to connect a Flutter app to platform-specific services.
You can read more about accessing platform and third-party services in Flutter.
iOS
You can use the commands flutter build
and flutter run
from the app's root
directory to build/run the app or you can open ios/Runner.xcworkspace
in Xcode
and build/run the project as usual.
Android
You can use the commands flutter build
and flutter run
from the app's root
directory to build/run the app or to build with Android Studio, open the
android
folder in Android Studio and build the project as usual.
Windows
You can use the commands flutter build
and flutter run
from the app's root
directory to build/run the app or you can build once then open
build\windows\platform_channel.sln
in Visual Studio to build and run.