win32_clipboard 1.0.0
win32_clipboard: ^1.0.0 copied to clipboard
A package that provides a friendly Dart API for accessing the Windows Clipboard.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 - 2024-10-28 #
🎉 First Stable Release 🚀 #
This release marks the first stable release of the win32_clipboard package,
offering a refined and feature-rich API for interacting with the Windows
Clipboard in Dart.
🔄 Breaking Changes #
Clipboard:getData: Now returnsClipboardData?instead ofString?.setData: Now takes aClipboardDatainstance as the only argument.registerFormat: Now returnsClipboardFormatinstead ofint.
ClipboardFormat:formatIdfield renamed toid.name: The optional named parameternameis now a required positional parameter and is no longer nullable.text: Constant renamed tounicodeText.
✨ New Features #
-
Clipboard File List Support:
- Added
Clipboard.getFileList()to retrieve a list of files from the clipboard. - Added
Clipboard.setFileList()to set a list of files on the clipboard. - Added
Clipboard.hasFileListgetter to check if the clipboard contains file list data. - Added
ClipboardFormat.fileListconstant for identifying the file list format.
- Added
-
Data Change Listeners:
- Added
Clipboard.onDataChanged(ClipboardFormat format)to listen for changes in specific clipboard formats. - Added
Clipboard.onFileListChangedgetter to listen for file list changes. - Added
Clipboard.onTextChangedgetter to listen for text changes.
- Added
-
New Data Types:
- Introduced
ClipboardDataas a base class for clipboard data. - Added subclasses:
FileListDatafor handling file lists.PointerDatafor handling pointer-based data.UnicodeTextDatafor handling Unicode text data.
- Introduced
🛠 Improvements #
- Refined API to be more intuitive and consistent across all clipboard operations.
- Optimized internal structure for better performance and reliability.
🚨 Dart SDK Requirement #
- Bumped the minimum required Dart SDK version to
3.5.0.
0.1.3 #
- Bump minimum required Dart SDK version to
3.4.0
0.1.2 #
- Fix deprecation warnings
- Update links
- Bump minimum required Dart SDK version to
3.3.0
0.1.1 #
- Improved documentation.
0.1.0 #
- Initial version.