Introduction to sensor packages: This repo will teach you some of the popular sensor controlling packages that are available in pub.dev, & how to use them for the application development. These packages are for reading the sensors' output, hence requires an actual mobile device to check their reliability. I am using a Redmi Note 9 Pro
phone for testing these packages in app-release
mode.
Playlist URLs:
YouTube: local_auth
YouTube: shake
YouTube: qr_code_scanner
YouTube: speech_to_text
- Battery Plus > final Battery _battery = Battery() > batteryLevel = await _battery.batteryLevel
- WakeLock > Wakelock.enable(); > Wakelock.disable();
- Local Auth > watch this video
- Sensors Plus > userAccelerometerEvents.listen((UserAccelerometerEvent event){} > gyroscopeEvents.listen((GyroscopeEvent event){} > magnetometerEvents.listen((MagnetometerEvent event){}
- Shake > ShakeDetector.autoStart(onPhoneShake: () {})
- QR Code Scanner > watch this video
- Camera > late CameraController controller > controller = CameraController() > CameraPreview(controller) > controller.takePicture()
- Speech To Text > watch this video
No. | Name of the Package | Package URL | Screenshots |
---|---|---|---|
1 | Battery Plus |
battery_plus: ^2.1.4 |
|
2 | WakeLock | wakelock: ^0.6.1+2 | |
3 | Local Auth | local_auth: ^2.1.0 | |
4 | Sensors Plus |
sensors_plus: ^1.3.2 |
|
5 | Shake | shake: ^2.1.0 | |
6 | QR Code Scanner | qr_code_scanner: ^1.0.0 | |
7 | Camera | camera: ^0.9.8+1 | |
8 | Speech To Text |
speech_to_text: ^5.6.0 avatar_glow: ^2.0.2 highlight_text: ^1.4.0 |