Device functionalities.
-
- Listen Battery state in three state { Full, Charging, Discharging }
- Show current battery level at percentage
- Pub: https://pub.dev/packages/device_info
- Example
- Distinguish Android and iOS platform using
io
andservices
package - Use
DeviceInfoPlugin
to reach the device data
- Distinguish Android and iOS platform using
- Pub: https://github.com/flutter/plugins/tree/master/packages/package_info
- Example
- Use
PackageInfo
to getAppName
,PackageName
,AppVersion
,BuildNumber
- Use
- Pub: https://pub.dev/packages/path_provider
- Cookbook: https://flutter.dev/docs/cookbook/persistence/reading-writing-files
- Teach you how to use
MethodChannel
to test.
- Teach you how to use
- Example
- Get the paths of
TempDirectory
,AppDocumentsDirectory
,AppSupportDirectory (iOS only)
,ExternalDocumentsDirectory (Android only)
- Write some data to the file, and read it from the file.
- Get the paths of
- Pub: https://pub.dev/packages/video_player
- Need to follow the installation
- Example
- Load the video from network and asset, and implement play/pause animation on video player.
-
Pub: https://pub.dev/packages/camera
- Need to follow the installation
- Migrate AndroidX: https://developer.android.com/jetpack/androidx/migrate
-
- Take a picture or record a video then save it by path provider
- Pub: https://pub.dev/packages/image_picker
- Need to follow the installation
- Example
- Use device camera or gallery to capture video or image.
- Pub: https://pub.dev/packages/google_maps_flutter
- Need to follow the installation
- Get the maps API keys
- Enable Maps SDK from console
- Example
- There are a lot of API implementation not cover here
- You can find it in the official examples
- Pub: https://pub.dev/packages/sensors
- Example
- Listen to
accelerometerEvents
,gyroscopeEvents
,userAccelerometerEvents
- Listen to