core_kit 1.1.4
core_kit: ^1.1.4 copied to clipboard
CoreKit (core_kit) — SPM-ready Flutter UI kit with responsive scaling, Dio HTTP, JWT auth, secure storage, and 35+ widgets.
1.1.4 #
- Documentation & Starter Template Improvements:
- Added comprehensive
README.mdwith GitHub-style Markdown (badges, TOC, full feature list, detailed API docs).
- Added comprehensive
1.1.3 #
- Documentation & Badge Cleanup:
- Removed broken
Pub Popularitybadge fromREADME.mdwhich was returning a 404 error on pub.dev.
- Removed broken
1.1.2 #
- Swift Package Manager (SPM) Ready:
- All native plugin dependencies (
permission_handler,flutter_secure_storage,share_plus,file_picker,cached_network_image) are upgraded to their latest major SPM-ready releases, providing seamless integration with Flutter's Swift Package Manager on iOS and macOS.
- All native plugin dependencies (
- Documentation & Link Fixes:
- Fixed relative
LICENSEbadge and footer links causing 404 errors on pub.dev. - Fixed repository and issue tracker URLs in
pubspec.yamlto eliminate 404 errors on pub.dev's "View/report issues" link. - Updated Docsify sidebar links to use anchor query navigation
/?id=...to avoid 404 errors when navigating sections.
- Fixed relative
1.1.1 #
- HTML Rendering Engine Migration (
CkText):- Replaced
flutter_html ^3.0.0withflutter_widget_from_html ^0.17.3for HTML content rendering insideCkText. - Migrated the internal HTML rendering widget from
Html(flutter_html) toHtmlWidget(flutter_widget_from_html), eliminating the dependency onflutter_html'sStyle,Margins,HtmlPaddings,FontSize, andDisplayAPIs. - Equivalent per-element styling (body, p, h1–h6) is now applied via
HtmlWidget.customStylesBuilderusing CSS property maps. - Font family, size, weight, and color are forwarded through
HtmlWidget.textStyle, maintaining visual parity with the previous implementation.
- Replaced
1.1.0 #
- Dual Password Management (
changePassword&resetPassword):- Added dedicated
resetPasswordendpoint, method override (resetPasswordMethod), and facade methodauth.resetPassword()/CkAuthService.instance.resetPassword()for unauthenticated forgot-password completion. Automatically routes toshowLoginupon success. - Dedicated
changePasswordendpoint, method override (changePasswordMethod), and facade methodauth.changePassword()/CkAuthService.instance.changePassword()for authenticated users to update their credentials. Automatically logs the user out upon success. - Added
CkAuthLoadingType.resetPasswordandCkAuthLoadingType.updatePasswordto track each loading state independently.
- Added dedicated
- Profile Synchronization:
- Refined
updateProfile()inCkAuthServiceto re-fetch canonical user profile data from the server automatically viafetchProfile().
- Refined
- Input Styling & Error Border Enhancements (
CkInputConfig):- Added global
errorColorconfiguration toCkInputConfig(defaults toColors.red). - Added custom styling and automatic derivation for
errorBorderandfocusedErrorBorderacrossCkTextField,CkMultilineTextField, andCkSearchmatching border style (outlinevsunderline) and radius.
- Added global
- Component Improvements:
- Added
preserveComposeTextinCkCommentSheetto retain drafted comment text during minimize/restore actions.
- Added
1.0.1 #
material_uiIntegration & Type Fixes:- Added
material_uisupport across core UI components. - Resolved
InputDecorationtype collision betweenmaterial_uiand Flutter's nativematerial.dartinsideCkPhoneNumberTextField.
- Added
- Static Analysis & Code Health (50/50 Pana Score):
- Resolved all static analysis warnings, lints, and formatting issues across library and test suite.
- Deprecated
CkPermission.calendarwith migration guidance towardsCkPermission.calendarFullAccessandCkPermission.calendarWriteOnlymatchingpermission_handlerdeprecation. - Optimized file existence checks in
CkPathwith synchronousexistsSync()for better performance (avoid_slow_async_io). - Fixed multi-slash path normalization in
CkPath.join(). - Cleaned up unused imports and standardized directive ordering with
dart fix. CkListLoaderConfignow supports a global empty-state widget forCkListView,CkTabListViewandCkGridView.
1.0.7+7 #
- CkPermission Manager:
- Introduced modern, unified permission manager
CkPermission(await CkPermission.camera.ensure(),await CkPermission.photos.ensure(), etc.) with pre-defined typed constants and convenience getters (status,isGranted,isDenied,isPermanentlyDenied). - Added
.ensure()extension on standardPermission(await Permission.camera.ensure()). - Marked legacy
CkPermissionHelperandCkPermissionHandleras@Deprecated.
- Introduced modern, unified permission manager
- CkPath Directory & Path Manager:
- Added
CkPathutility for easy access to device directories (getTemporaryDirectory(),getApplicationDocumentsDirectory(), cache, downloads, support) and direct string paths (tempPath,documentsPath,cachePath). - Added helpers to create temporary and document files (
createTempFile(),getTempFilePath(),createDocumentFile(),join(),clearTemp()). - Re-exported
path_providerdirectly incore_kit.dart.
- Added
- CkCommentSheet Text Preservation:
- Added
preserveComposeTextparameter toCkCommentSheetto preserve written comment text across show/hide composer states until send is clicked. - Fixed
CkMultilineTextFieldto avoid overwriting existing controller text upon mounting whenonInitalizeis null.
- Added
1.0.7+6 #
- Static Analysis: static analysis issues fixed and Dependencies updated.
1.0.7+5 #
- Static Analysis: reduce static analysis issues.
1.0.7+4 #
- Dependencies: Updated dependencies to address potential compatibility issues.
1.0.7+3 #
- Documentation: Improved pub.dev page with topics, screenshots, and an updated description.
1.0.7+2 #
- Documentation: Internal code comments and doc organization.
1.0.7+1 #
- Documentation Update: Added the latest demo screenshots and a new preview video to the
README.md.
1.0.7 #
- Comprehensive Auth System Test Suite: Created a robust, VM-friendly test plan and suite containing 164 unit, service, integration, edge-case, and backward-compatibility tests to validate the full authentication and OTP flow logic.
- OTP & Mock Auth Bugfixes:
- Fixed a mock
sendOtp()bug where active triggers and recipients were not stored, preventing subsequent verification checks. - Resolved an issue where the
_preSignupOtpVerifiedflag was infinitely re-asserted in unified post-signup auth checks, ensuring it behaves correctly as a one-shot bypass. - Added test-only helpers and factories (
resetForTests(),seedForTests(), andinitForTests()) to fully isolate auth tests from disk and network dependencies.
- Fixed a mock
- Smart Text Field Capitalization:
- Added a validation-type check (
InputHelper.shouldCapitalize) to disable text capitalization on input fields where it is undesirable (e.g., email address, passwords, URLs, usernames).
- Added a validation-type check (
1.0.6+4 #
- Deprecated
CoreKitConfigDefaults: Deprecated theCoreKitConfigDefaultsmixin and updated all code implementations, comments, and documentation examples. Developers should inherit directly fromCoreKitConfiginstead, as it now provides concrete default implementations for all optional properties.
1.0.6+3 #
- Global Input Configuration (
CkInputConfig): Added support for configuring app-wide text field style defaults (borders, background colors, sizing, text styles, alignments, and capitalization defaults) from one place. - Global SnackBar Configuration (
CkSnackBarConfig): Added support for configuring globalCkSnackBaroverrides (including top/bottom positions, margins, padding, border radii, shadows, semantic colors, and custom icons). - URL Auto-Lowercase: URLs typed or pasted inside text fields are automatically converted to lowercase while preserving the surrounding text.
- Capitalization Toggle (
enableCapitalization): Added a parameter to disable automatic sentence capitalization on specific text fields.
1.0.6+2 #
- CkAppBar Title Alignment Fix: Fixed an issue where global app bar title alignment configured via
CoreKitConfigwas not being applied.
1.0.6+1 #
- New Validation Type (
usernameAndEmailValidation): AddedCkValidationType.usernameAndEmailValidationtoCkTextField, allowing a single field to accept either a valid username or a valid email address. - Documentation — Mock Auth: Corrected the auth mock docs to use
mockAuth: true(replacing the staleauthEnable: falsereferences). - Documentation — Template Setup: Expanded the template quick-start steps to include
fvm dart run build_runner build(required for AutoRoute code generation) andfvm flutter run, with a clear explanation of when to re-runbuild_runner.
1.0.6 #
- CkAppBar Initialization Fix: Resolved a
LateInitializationError: Field 'appbarConfig' has not been initializedcrash that occurred when renderingCkAppBaron initial routes (such as a Splash Screen) beforeCoreKitRouterGatecompleted its asynchronous initialization.appbarConfignow defaults to a safe instance ofCkAppBarConfig(). - Auth Mock Mode Enhancements (
mockAuth):- Renamed the
authEnableconfiguration parameter tomockAuth(inverting logic for improved semantic clarity). - Updated
signInandsignUpmocks to seamlessly bypass OTP dialog triggers whenshowOtpVerificationis not implemented in the application handlers. - Added a
mockAuthcheck inrestoreSessionto prevent profile fetch failures to blank URLs upon hot restarts.
- Renamed the
1.0.5 #
- State Abbreviation Support & Data Class: Updated
CkStateDropDowncallbacks (onChanged,selectedItemBuilder,nameBuilder) to passCkStateDropDownItemPropertycontaining bothstateNameandabbreviation. - Flexible Initial Selection: Added
initialStateparameter toCkStateDropDownaccepting either full state name (e.g.'California') or state abbreviation (e.g.'CA'). - Smart City Dropdown: Updated
CkCityDropDown'sselectedStateparameter to seamlessly handle state abbreviations as well as state names. - Built-in Abbreviation Dataset: Added
StateAbbreviationsdataset supporting automatic abbreviation lookups for US States, Canadian Provinces, and Australian States.
1.0.4 #
- Warning fixed: Fixed linting warnings in
ck_auth_service.dartandrequest_builder.dart.
1.0.3 #
- License Update: Changed package license to MIT.
1.0.2 #
- Web & Multi-Platform Support: Replaced native
dart:ioimports withuniversal_ioto ensure seamless compatibility across all platforms, including Flutter Web. - Resolved Dependency Conflicts: Downgraded to stable releases of
file_picker(^11.0.2) andshare_plus(^12.0.2) to resolve win32 compatibility issues for web and desktop platforms. - Example App: Added a full Flutter example application demonstrating core layout helpers,
CkTransport,CkStorage,CkListViewpagination,CkAppBar, and form validations. - Dartdoc Documentation: Added comprehensive documentation comments to public APIs including
CoreKit,CoreKitConfig,CkResponse,CkTransportConfig, and others. - Design Guidelines: Documented best practices in
README.mdfor using native-likeCkwidgets and correctly applying responsive extensions (.w,.h,.sp,.r).
