flutter_devlens 0.1.3 copy "flutter_devlens: ^0.1.3" to clipboard
flutter_devlens: ^0.1.3 copied to clipboard

A premium, production-quality developer debugging toolkit for Flutter. Features glassmorphism UI, network inspector (Dio), route tracker, and custom logger.

flutter_devlens πŸ” #

Hero Banner

Pub Version License: MIT Flutter

A premium, production-quality developer debugging toolkit for Flutter. Designed to feel like a high-end desktop devtool integrated directly into your mobile app.

✨ Why DevLens? #

Most developer tools are cluttered or look like basic widget packages. DevLens is built for professional engineers who value both functionality and aesthetics. It provides a non-obtrusive, high-performance overlay with a beautiful glassmorphism interface.

πŸš€ Key Features #

  • 🌐 Network Inspector: Real-time Dio request/response tracking with collapsible payload inspection.
  • πŸ“ Contextual Logger: Structured logging with severity levels (Info, Warn, Error) and millisecond timestamps.
  • πŸ›£οΈ Navigation Timeline: Automatic tracking of route history to debug complex navigation flows.
  • πŸ“± Device Metrics: Instant access to display dimensions, pixel ratios, and platform-specific metadata.
  • 🎨 Elite UI: Modern dark-mode glassmorphism design with smooth 60fps animations.
  • πŸ•ΉοΈ Draggable Overlay: A minimalist floating bubble that stays accessible but out of the way.

πŸ“Έ Screenshots #

Logs Panel Network Inspector
Logs Network

πŸ“¦ Installation #

Add flutter_devlens to your pubspec.yaml:

dependencies:
  flutter_devlens: ^0.1.3

Or run:

flutter pub add flutter_devlens

πŸ› οΈ Setup #

1. Initialize #

Call DevLens.initialize() in your main() function. This attaches the overlay to your app. By default, it only activates in Debug mode.

import 'package:flutter_devlens/flutter_devlens.dart';

void main() {
  DevLens.initialize();
  runApp(const MyApp());
}

2. Track Navigation (Optional) #

Add DevLens.routeObserver to your MaterialApp to enable the Navigation Timeline:

MaterialApp(
  navigatorObservers: [DevLens.routeObserver],
  // ...
)

3. Track Network (Dio) (Optional) #

Add DevLensDioInterceptor to your Dio instance to enable the Network Inspector:

final dio = Dio();
dio.interceptors.add(DevLensDioInterceptor());

πŸ—ΊοΈ Roadmap #

  • ❌ State Inspector: Support for Provider, Riverpod, and Bloc.
  • ❌ Storage Explorer: View SharedPreferences and Hive boxes.
  • ❌ Feature Flags: Toggle remote config values on the fly.
  • ❌ Performance Monitor: Real-time FPS and Memory usage graphs.

🀝 Contributing #

Contributions are welcome! Check out our Contributing Guide.

πŸ“„ License #

This project is licensed under the MIT License - see the LICENSE file for details.


4
likes
160
points
114
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A premium, production-quality developer debugging toolkit for Flutter. Features glassmorphism UI, network inspector (Dio), route tracker, and custom logger.

Repository (GitHub)

Topics

#developer-tools #debug #logging #network-inspector #utility

License

MIT (license)

Dependencies

dio, flutter, intl

More

Packages that depend on flutter_devlens