commonkit 0.1.2
commonkit: ^0.1.2 copied to clipboard
A lightweight utility package for Flutter with widgets, helpers, and extensions
Changelog #
All notable changes to the commonkit package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.2 - 2025-04-08 #
Added #
- WASM Compatibility: Added conditional exports in
lib/commonkit.dartto support WebAssembly (WASM) runtime by excludingdart:io-dependent features on web platforms (e.g.,storage_helper.dart,directory_manager.dart,advanced_image_picker.dart,permission_handler.dart). - Example Enhancements: Expanded the
example/lib/main.dartwith a newTestHomePagedemonstrating login/logout, serialization, and additionalcommonkitfeatures, alongside the existingExamplePage. - Documentation: Added library-level Dartdoc comments to
lib/commonkit.dartto improve pub score documentation coverage. - Clipboard Web Support: Enhanced
ClipboardManagerto work on web usingdart:htmlfor WASM compatibility.
Changed #
- Example Structure: Updated
example/lib/main.dartto integrateTestHomePageas the main entry point, with navigation toExamplePage, providing a more comprehensive demo ofcommonkitcapabilities. - Network Helper: Ensured
NetworkHelperuses thehttppackage, making it WASM-compatible by default. - UI Adjustments: Added
enabled: !kIsWebtoCustomButtonwidgets for file upload, directory management, and permission requests inexample_page.dartandmain.dart, disabling them on web with fallback messages.
Fixed #
- Linting Issues: Resolved unused variable warnings in
example_page.dart:- Removed unused
_sessionManagerfield since it wasn’t utilized. - Used the
datavariable in_testFileUploadby incorporating it into the status message.
- Removed unused
- Linting Issues in Main: Fixed unused
datainmain.dart’s_testFileUploadby logging it withLogger. - WASM Compatibility: Added
kIsWebchecks and conditional imports throughoutexample_page.dartandmain.dartto gracefully handle non-web features (file upload, directory management, permissions) on WASM.
Notes #
- This release prepares
commonkitfor future pub scoring models that will penalize WASM incompatibility. - Remaining linting issues (up to 31 reported) should be addressed in future updates; only 2 were explicitly fixed here based on provided details.
- Full WASM support for file operations (e.g., web-based file picker) is not yet implemented but can be added in future versions.