clipboard 3.0.8
clipboard: ^3.0.8 copied to clipboard
Flutter clipboard with text, HTML, and image support.
3.0.8 #
- Code Formatting: Improved code formatting and readability with better line breaks and consistent formatting.
- Code Quality: Removed trailing whitespace and fixed indentation issues for better code maintainability.
3.0.7 #
- Fixed JSString Type Issues: Fixed type compatibility issues in web clipboard implementation by properly converting Dart Strings to JSString for type comparisons.
- Analyzer Fixes: Resolved all static analysis warnings and errors for pub.dev compliance.
- Code Cleanup: Removed unnecessary imports and fixed analysis configuration issues.
3.0.6 #
- Web Package Migration: Migrated from
dart:htmlanddart:js_utilto the newpackage:webpackage for better compatibility and modern JS interop. - Conditional Import Update: Changed conditional import from
dart.library.htmltodart.library.jsto align with the new web package. - JS Interop Improvements: Updated web clipboard implementation to use modern JS interop APIs (
dart:js_interop) for better type safety and performance.
3.0.5 #
- Web Clipboard Fixes: Added full web support for copy/paste of text, rich text (HTML), and images using the browser Clipboard API with conditional imports.
- Web Image Copy/Paste: Implemented web-side image handling with
ClipboardItem/navigator.clipboardfor copy andread/getTypefor paste. - Web Text/Rich Text Paste: Added
readTextand HTML extraction viaread()+getType('text/html'). - Example App: Updated to avoid early clipboard reads; paste dialogs no longer show on launch.
- Lint/Build: Resolved analyzer issues after web additions.
3.0.0 #
- Major Release: Complete rewrite with platform channel support for true multi-format clipboard
- Platform Channels: Added native Android (Kotlin) and iOS (Objective-C) implementations for enhanced features
- True Rich Text Support: HTML clipboard support now works via platform channels, not just in-memory storage
- Image Support: Full image copy/paste support for PNG images on Android and iOS
- Native Clipboard Monitoring: Real-time clipboard change detection using platform APIs (Android clipboard listeners, iOS notification center)
- Memory Management: Fixed listener memory leaks by using Set instead of List and adding cleanup mechanisms
- Enhanced Error Handling: Improved error handling with graceful fallbacks to Flutter's Clipboard API
- Better Listener Management:
addListener()now returns a cleanup function, addedremoveAllListeners()method - New Methods: Added
copyImage()andpasteImage()for direct image clipboard operations - Production Ready: Comprehensive fallback mechanisms ensure reliability across all platforms
- Documentation: Updated README with accurate feature descriptions, image examples, and platform setup instructions
- Code Quality: Improved code structure, better separation of concerns, and comprehensive error handling
- Breaking Changes: This is a major version bump due to significant architectural improvements and platform channel integration
2.0.2 #
- Major Improvements: Complete rewrite with platform channel support for true multi-format clipboard
- Platform Channels: Added native Android (Kotlin) and iOS (Swift) implementations for enhanced features
- True Rich Text Support: HTML clipboard support now works via platform channels, not just in-memory storage
- Image Support: Full image copy/paste support for PNG images on Android and iOS
- Native Clipboard Monitoring: Real-time clipboard change detection using platform APIs (Android clipboard listeners)
- Memory Management: Fixed listener memory leaks by using Set instead of List and adding cleanup mechanisms
- Enhanced Error Handling: Improved error handling with graceful fallbacks to Flutter's Clipboard API
- Better Listener Management:
addListener()now returns a cleanup function, addedremoveAllListeners()method - New Methods: Added
copyImage()andpasteImage()for direct image clipboard operations - Production Ready: Comprehensive fallback mechanisms ensure reliability across all platforms
- Documentation: Updated README with accurate feature descriptions, image examples, and platform setup instructions
- Code Quality: Improved code structure, better separation of concerns, and comprehensive error handling
2.0.0 #
- Major Release: Fixed naming conflicts and improved API consistency
- Class Renaming: Renamed
ClipboardDatatoEnhancedClipboardDatato avoid conflicts with Flutter's built-inClipboardData - API Improvements: Better separation between Flutter's native clipboard API and enhanced features
- Bug Fixes: Fixed all compilation errors and linter issues
1.0.0 #
- Major Release: Complete rewrite with enhanced functionality
- SDK Update: Updated to Dart SDK >=3.0.0 <4.0.0
- Rich Text Support: Added
copyRichText()andpasteRichText()methods - Multiple Format Copy: Added
copyMultiple()for copying multiple data formats - Clipboard Monitoring: Added real-time clipboard change detection with
addListener(),startMonitoring(), andstopMonitoring() - Enhanced Error Handling: Custom
ClipboardExceptionclass with error codes - Utility Methods: Added
hasData(),isEmpty(),getContentType(),getDataSize(),isValidInput(), andclear() - Callback Support: Added
copyWithCallback()with success and error callbacks - Debug Information: Added
getDebugInfo()for comprehensive debugging - Testing Support: Added
setMockData()for testing scenarios - ClipboardData Class: New data class with rich information about clipboard content
- ClipboardContentType Enum: Enum for identifying clipboard content types
- Backward Compatibility: All original methods (
copy,paste,controlC,controlV) still supported - Improved Documentation: Comprehensive README with examples for all features
- Enhanced Example App: Complete demo showcasing all new features
0.1.3 #
- Added null safety
0.1.2+8 #
- Fixed bug in clipboard class
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+7 #
- Fixed bug in clipboard class
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+6 #
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+5 #
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+4 #
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+3 #
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+2 #
- No major changes, edited readme, changelog, pubspec.yaml.
0.1.2+1 #
- No major changes, just a few tweaks in readme, changelog.
0.1.2 #
- No major changes, just a few tweaks in readme, changelog, example director etc.
0.1.1 #
- First release
- User can Copy from clipboard
- User can Paste from cliboard,