Skip to content
Snippets Groups Projects
Commit d1b9fd43 authored by Sunny Singh's avatar Sunny Singh
Browse files

fix

parent 543b1582
No related branches found
No related tags found
No related merge requests found
Pipeline #376735 passed
......@@ -242,7 +242,8 @@ class _QuestionScreenState extends State<QuestionScreen> {
void _startBonusQuestion() {
_maxAcceleration = 0.0;
_accelerometerSubscription = accelerometerEventsStream.listen((event) {
// ignore: deprecated_member_use
_accelerometerSubscription = accelerometerEvents.listen((event) {
final acceleration = event.x * event.x + event.y * event.y + event.z * event.z;
if (acceleration > _maxAcceleration) {
setState(() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment