keep_screen_on
This plugin disables automatic screen off and prevents the screen from turning off.
6.0.0
44K downloads/mo
#1550 most downloaded on pub.dev
craftsoft-dev/flutter_keep_screen_on
What this package is like to depend on
Last release 3 months ago
16 May 2026
Ships on a steady schedule
a new release about every 10 months
Nearly every release is documented
notes for 7 of 7 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
7 releases · first in 2020
2 releases in the last 12 months
see the full history below
Release timeline
7 releases · Sep 2020 to May 2026Releases
latest 7-
6.0.016 May 2026Release notes
Open source →- Breaking change. Changed the minimum version of Flutter to 3.41.0.
- (iOS only) Added Swift Package Manager support.
- (Android only) Update Java compatibility version to 17.
Release notes
Open source →- Breaking change. Changed the minimum version of Flutter to 3.41.0.
- (iOS only) Added Swift Package Manager support.
- (Android only) Update Java compatibility version to 17.
-
5.0.013 Sep 2025Release notes
Open source →- Breaking change. (Android only) Changed "compileSdk" in the build.gradle file from 33 to flutter.compileSdkVersion.
- Breaking change. (Android only) Changed the "sourceCompatibility", "targetCompatibility", and "jvmTarget" settings in the build.gradle file to 11.
Full Changelog: v4.0.0...v5.0.0
Release notes
Open source →- Breaking change. (Android only) Changed "compileSdk" in the build.gradle file from 33 to flutter.compileSdkVersion.
- Breaking change. (Android only) Changed the "sourceCompatibility", "targetCompatibility", and "jvmTarget" settings in the build.gradle file to 11.
-
4.0.020 Feb 2025Release notes
Open source →Breaking change. (Android only) Deleted references to Android v1 embedding.
Full Changelog: v3.0.0...v4.0.0
Release notes
Open source →- Breaking change. (Android only) Deleted references to Android v1 embedding.
-
3.0.022 Oct 2023Release notes
Open source →- Breaking change. Changed arguments for turnOn methods from positional parameters to named parameters.(Changed
turnOn(false)toturnOn(on: false).) - Breaking change. Changed the minimum Android SDK version to 19.
- Breaking change. Changed the minimum iOS version to 11.0.
- Breaking change. Changed the minimum version of Flutter to 3.10.0.
- (Android only) Added the withAllowLockWhileScreenOn parameter to the turnOn and turnOff methods so that the FLAG_ALLOW_LOCK_WHILE_SCREEN_ON flag can be set at the same time on Android OS.
- (Android only) Added addAllowLockWhileScreenOn, clearAllowLockWhileScreenOn, isAllowLockWhileScreenOn methods to manipulate the FLAG_ALLOW_LOCK_WHILE_SCREEN_ON flag.
- (Android only) Adjusted so that it can be built with "Gradle 8".
Full Changelog: v2.1.0...v3.0.0
Release notes
Open source →- Breaking change. Changed arguments for turnOn methods from positional parameters to named parameters.(Changed
turnOn(false)toturnOn(on: false).) - Breaking change. Changed the minimum Android SDK version to 19.
- Breaking change. Changed the minimum iOS version to 11.0.
- Breaking change. Changed the minimum version of Flutter to 3.10.0.
- (Android only) Added the withAllowLockWhileScreenOn parameter to the turnOn and turnOff methods so that the FLAG_ALLOW_LOCK_WHILE_SCREEN_ON flag can be set at the same time on Android OS.
- (Android only) Added addAllowLockWhileScreenOn, clearAllowLockWhileScreenOn, isAllowLockWhileScreenOn methods to manipulate the FLAG_ALLOW_LOCK_WHILE_SCREEN_ON flag.
- (Android only) Adjusted so that it can be built with "Gradle 8".
- Breaking change. Changed arguments for turnOn methods from positional parameters to named parameters.(Changed
-
2.1.006 Nov 2022 -
2.0.020 Jun 2021 -
1.0.020 Sep 2020