Skip to content

Conversation

@rahul31124
Copy link
Contributor

Fixes #3013

Changes

  • Integrated wakelock_plus into the Oscilloscope state provider.
  • The screen now remains ON during active measurements (including XY plot and playback).
  • The wakelock is automatically released when no measurement is running or when playback is paused/stopped.

Screenshots / Recordings

N/A

Checklist:

  • No hard coding: I have used values from constants.dart or localization files instead of hard-coded values.
  • No end of file edits: No modifications done at end of resource files.
  • Code reformatting: I have formatted the code using dart format or the IDE formatter.
  • Code analysis: My code passes checks run in flutter analyze and tests run in flutter test.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @rahul31124, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@rahul31124
Copy link
Contributor Author

Hello @marcnause,
I have added wakelock_plus so that the oscilloscope screen remains awake during active usage (live measurement, XY plot, and playback).
I’m unable to share a screen recording since the screen automatically stays awake during recording, but the behavior has been tested and works as expected.

@rahul31124 rahul31124 requested a review from marcnause January 7, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep screen on as long as the app is measuring

1 participant