debug_lens 0.0.1
debug_lens: ^0.0.1 copied to clipboard
An on-device debug panel for Flutter: network calls, logs, bloc/navigation events, storage, plus your own crash, analytics and remote-config data.
import 'package:debug_lens/debug_lens.dart';
import 'package:flutter/material.dart';
import 'src/app.dart';
import 'src/core/bootstrap.dart';
void main() => _run();
Future<void> _run() async {
WidgetsFlutterBinding.ensureInitialized();
// Master switch — on in every mode here so a release build stays inspectable.
DebugLens.debugLensEnabled = true;
await bootstrap();
// The navigator observer and DebugLens.wrap live in app.dart, on the
// MaterialApp they actually apply to.
runApp(const ExampleApp());
}