cron_form_field 1.0.0
cron_form_field: ^1.0.0 copied to clipboard
A Flutter cron form field widget. It can edit cron expressions with this form field in an alert dialog.
1.0.0 - 2026-03-20 #
BREAKING CHANGES #
- Require Dart >=3.0.0 and Flutter >=3.10.0
- Rename all enum values from UPPER_CASE to lowerCamelCase (e.g.,
CronExpressionType.QUARTZ→CronExpressionType.quartz,CronExpressionOutputFormat.AUTO→CronExpressionOutputFormat.auto) - Remove deprecated
autovalidateandmaxLengthEnforcedconstructor params (useautovalidateModeinstead) - Remove unused constructor params:
obscureText,autocorrect,maxLines,minLines,expands,maxLength,keyboardType,textInputAction,smartDashesType,smartQuotesType,enableSuggestions,inputFormatters,buildCounter,cursorWidth,cursorRadius,cursorColor,scrollPadding,scrollPhysics,keyboardAppearance,enableInteractiveSelection,contextMenuBuilder,showCursor,strutStyle,textDirection,textCapitalization,onEditingComplete,onFieldSubmitted - Remove
CronEntitybase class — part classes now implementCronPartdirectly - Remove
CronSecondType,CronMinuteType,CronHourTypeenums (replaced byCronTimePartTypeinCronTimePartbase class)
Bug Fixes #
- Fix "OKT" typo → "OCT" in month names
- Fix off-by-one in
toReadableString()across all part classes (getRange(0, length-2)→getRange(0, length-1)) - Fix
DayOfMonth.getType()misclassifying ranges like1-15asDAY_BEFORE_END_OF_MONTH - Fix duplicate widget keys in yearly panel (
monthly_*→yearly_*) - Make
outputFormatnon-nullable with default value
New Features #
- Add
CronPickerDialog.show()static method for standalone dialog use - Export
CronPickerDialogfrom the main library - Add
onCronExpressionChangedcallback exposing parsedCronExpressionobject - Add Seconds panel in dialog for Quartz expressions
- Show human-readable description below cron expression in dialog
- Add regex-based
validate()in all part classes
Improvements #
- Extract
CronTimePartbase class —CronSecond,CronMinute,CronHourare now thin subclasses - Replace custom expandable panels with
ExpansionTilefor Material 3 theming - Only reset expression when opening a new panel, not when collapsing
- Add
ConstrainedBox(maxWidth: 400)for tablet/desktop/web - Display cron expression in monospace font
- Add
Semanticslabel on expression display - Add
///doc comments to public API classes and enums - Add CI workflow with
flutter analyze,flutter test,dart format - Modernize publish workflow:
actions/checkout@v4,subosito/flutter-action - Add pub.dev metadata:
topics,screenshots,repository,issue_tracker - Expand tests from 27 to 86 (77 unit + 9 widget)
0.6.0 - 2023-02-15 #
- Support Flutter 3.7
- Upgrade dependencies
0.5.0 - 2022-07-15 #
- Support Flutter 3
- Upgrade dependencies
0.4.0 - 2022-02-25 #
- Fix index of dayOfWeek and month values
- Rename parent var to cronDay
- Improve QUARTZ and STANDARD cron handlers
0.3.0 - 2022-02-24 #
- Add outputFormat property (default: CronExpressionOutputFormat.AUTO)
- Fix dart lint issues
- Upgrade dependencies
0.2.0 - 2021-08-05 #
- Updated cron expression parser
0.0.1 - 2021-07-28 #
- Initial release
