console_plus 2.0.0
console_plus: ^2.0.0 copied to clipboard
A Flutter plugin that provides an elegant in-app developer console with floating button.
Changelog #
All notable changes to this project will be documented here.
0.0.1 #
- π Initial release of
console_plusplugin. - Added basic logging functionality for Flutter applications.
- Implemented iOS support using CocoaPods (
console_plus.podspec). - Included core plugin structure:
Assets/for resourcesClasses/for platform-specific implementationsResources/for bundled iOS assets
- Package validated successfully with 0 warnings.
- β οΈ Note: Swift Package Manager (SPM) support for iOS not yet included.
0.0.2 #
- π§© Migrated from
dart:jstodart:js_interopto remove deprecation warnings. - πΈοΈ Fixed console access errors on Flutter Web builds.
- β Improved null-safety and JS interop consistency.
- π§Ή Cleaned up unused example code and enhanced documentation.
1.0.0 #
- π Major update: Introduced floating in-app console overlay.
- Added draggable and resizable floating console window.
- Introduced
FloatingDebugButtonπ to toggle visibility dynamically. - Added log filtering by
LogType(INFO,WARNING,ERROR). - Added keyword-based search for tag or message filtering.
- Implemented multi-line text selection and copy support.
- Integrated auto-scroll detection (scrolls only if user is at bottom).
- Added horizontal scrolling for long log lines.
- Enhanced UI with rounded corners, translucent black background, and adaptive layout.
- Added download/export feature (saves logs as
.jsonviafile_saverpackage). - Improved time formatting β displays
[HH:mm:ss.SSS]instead of full ISO date. - Fixed issue where console covered full screen; now opens at 50% height with resize support.
- β‘ Optimized large log handling (up to 2,000 entries retained).
- Prevented text selection from resetting when new logs arrive.
- Improved filter & search performance with
ValueListenableBuilder. - Added persistence to scroll behavior when updating logs.
- Minor UI polish β compact layout on small screens and better padding on controls.
- π§Ύ Added SnackBar confirmation after exporting logs.
- Added graceful error handling for failed export attempts.
- Refined drag-and-resize logic for smoother UX.
- Improved accessibility contrast and dark theme consistency.
- Internal refactor for better log notifier updates (removed manual listeners).
- πͺ Refined
SelectableTextbehavior for stable multi-line selection. - Fixed bug where selection was lost on log updates.
- Added horizontal + vertical scroll sync for long logs.
- Enhanced file export naming: uses timestamp-based file names (
debug_logs_YYYY-MM-DD_HH-mm-ss.json). - Documentation and logo added for GitHub and pub.flutter-io.cn release.
1.0.1 #
π¦ Maintenance & Improvements #
- β
Updated all dependencies to the latest stable versions:
- file_saver β ^0.3.1
- path_provider β ^2.1.5
- plugin_platform_interface β ^2.1.8
- βοΈ Improved compatibility with Flutter 3.24+ SDK
- π§Ή Minor internal cleanup and formatting (dart format .)
- π§ Ready for Dart 3.x and Flutter 3.10+ environments
π§βπ» Developer Note: #
This update improves your pluginβs pub.flutter-io.cn score by ensuring dependency freshness and Flutter compatibility.
2.0.0 #
π Major Rewrite & Stability Upgrade
This release introduces a complete overhaul of ConsolePlus, focused on stability, compatibility, and full log interception across Flutter environments.
β¨ New Features #
- β
Unified print interception
print()anddebugPrint()are now both captured automatically using a single Zone-based system.- All intercepted logs appear instantly in the in-app console.
- β
Zone-safe Flutter initialization
- Fixed all βZone mismatchβ errors by initializing
WidgetsFlutterBindingandrunApp()within the same zone. - Ensures compatibility with Flutter 3.24+ and Dart 3 zones.
- Fixed all βZone mismatchβ errors by initializing
- β
Automatic Flutter & Platform error capture
- All uncaught
FlutterErrors and platform-level errors are logged in the console with full stack traces.
- All uncaught
- β
Improved floating console UI
- Draggable, resizable overlay with better readability.
- Real-time log filtering (Info / Warning / Error).
- Search bar with live results.
- One-click copy, export (JSON), and clear logs actions.
- β
New floating debug button
- Quick toggle to show/hide the floating console from anywhere in the app.
- Automatically attaches to the root overlay safely after the first frame.
- β
Persistent scroll & auto-scroll
- Console remembers user scroll position and only auto-scrolls when near the bottom.
- β
Export logs
- Export logs as plain text or JSON file.
- Integrated with
file_saverfor desktop and mobile exports.
π§© Under the Hood #
- Rewritten
ConsolePlus.initApp()for clean Zone management. - Added
_detectType()logic to classify logs asinfo,warning, orerror. - Simplified
DebugLogConsolearchitecture for speed and thread safety. - Added
PrintCapturerfor early print interception before app startup. - Added
ConsolePlusLog.overrideLogHandler()for customdeveloper.loginterception. - Improved UI rendering performance and eliminated rebuild flicker.
β οΈ Breaking Changes #
ConsolePlus.init()renamed toConsolePlus.initApp().- Initialization now must be awaited:
await ConsolePlus.initApp( const MyApp(), interceptPrints: true, captureFlutterErrors: true, capturePlatformErrors: true, );
