debug_screen_on 1.0.1 copy "debug_screen_on: ^1.0.1" to clipboard
debug_screen_on: ^1.0.1 copied to clipboard

PlatformAndroid

A Flutter plugin that keeps the screen on during debugging sessions when a debugger is attached or ADB is enabled.

example/main.dart

import 'package:flutter/material.dart';
import 'package:debug_screen_on/debug_screen_on.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Debug Screen On Example'),
        ),
        body: Center(
          child: Text(
            'Screen automatically stays on during debugging when:\n'
            '• Debugger is attached\n'
            '• ADB is enabled\n\n'
            'No setup required - just add the dependency!',
            textAlign: TextAlign.center,
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that keeps the screen on during debugging sessions when a debugger is attached or ADB is enabled.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on debug_screen_on

Packages that implement debug_screen_on