kdialogs 0.5.2
kdialogs: ^0.5.2 copied to clipboard
Implementation of common dialogs in Flutter projects, useful for accelerating development.
0.0.1 #
- Initial release.
- showKDialogWithLoadingMessage
- showKDialogWithLoadingIndicator
- showBottomAlertKDialog
- showKDialogContent
- showConfirmationKDialog
- showAsyncProgressKDialog
0.0.2 #
- Fix showConfirmationKDialog and showBottomAlertKDialog response
- response false by default
- Fix showConfirmationKDialog width when message is short
0.0.3 #
- Refactor
- Add options dialogs
0.1.0 #
- Improvements in the way objects are compared in the options dialog
0.1.1 #
- Fix result on options dialogs when cancel button is pressed, returns null now
1.0.0 #
- Stable version
0.1.2 #
- fix show sync dialog
0.1.3 #
- fix custom box dialog
0.2.0 #
- replace WillPopScope to PopScope
0.3.0 #
- add showConfirmationKDialogWithCallback
0.3.1 #
- fix loading context
0.4.0 #
- add support to set customs strings
0.4.1 #
- fix exports
0.5.0 #
-
General
- Refactored multiple functions for readability, efficiency, and security.
- Removed redundant code; improved
context.mountedusage in dialogs. - Optimized dialog logic to prevent overflow and enhance UX.
-
Fixes in
showKDialogContent- Prevented title overflow with
TextOverflow.ellipsisandFlexible. onSaveis nowFuture<bool>, closing only if it returnstrue.- Fixed
titlePadding(wastitlePading). - Removed unnecessary
SizedBox(width: double.maxFinite).
- Prevented title overflow with
-
Improvements in
showAsyncProgressKDialog- Initialized
closeloader = () {};to prevent errors ifdoProcess()fails. - Verified
context.mountedin critical points to avoid exceptions. - Improved
retryhandling by storing it before checkingcontext.mounted. - Ensured the loading dialog closes before any
awaitincatch.
- Initialized
-
Renamed
wrapAsyncAction→executeAsyncWithErrorDialog -
Optimized
showConfirmationKDialogWithCallback- Ensured
onConfirm()runs only ifanswer == true. - Direct return, removing unnecessary temp variables.
- Ensured
-
Fixes in
showBasicOptionsKDialog- Fixed
isSelected, previously misdeclared asvoid. - Used
toSet()inselectedOptionsto prevent duplicates and boost performance. - Refactored search, removing unnecessary functions.
- Fixed
0.5.1 #
- Make dialog height adaptable by adding useMaxHeight flag
0.5.2 #
- Add support for fixed dialog width with breakpoints (mobile, tablet, desktop, large desktop) to ensure forms look good on all screen sizes.