Skip to content

Commit

Permalink
Fix/time picker form field initial value (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro authored Jan 14, 2025
1 parent d1a50b5 commit 65b75df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- **BREAKING CHANGE**: Remove `applyIconColorFilter` from `ShadButton`.
- **BREAKING CHANGE**: Remove `ShadImage` component. Prefer using the `Icon` widget for `IconData`, the `Image` widget for normal images, and `SvgPicture` (from the [flutter_svg package](https://pub.dev/packages/flutter_svg) for SVG images. If you want a fallback, use `UniversalImage`.
- **BREAKING CHANGE**: Rename `iconSrc` in `iconData` around components.
- **FIX**: `TimePickerFormField` initial value.

## 0.17.6

Expand Down
3 changes: 3 additions & 0 deletions lib/src/components/form/fields/time_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class ShadTimePickerFormField extends ShadFormBuilderField<ShadTimeOfDay> {
controller: state.controller,
onChanged: state.didChange,
enabled: state.enabled,
initialValue: state.initialValue,
axis: axis,
spacing: spacing,
runSpacing: runSpacing,
Expand Down Expand Up @@ -281,6 +282,7 @@ class ShadTimePickerFormField extends ShadFormBuilderField<ShadTimeOfDay> {
controller: state.controller,
onChanged: state.didChange,
enabled: state.enabled,
initialValue: state.initialValue,
axis: axis,
spacing: spacing,
runSpacing: runSpacing,
Expand Down Expand Up @@ -452,6 +454,7 @@ class ShadTimePickerFormField extends ShadFormBuilderField<ShadTimeOfDay> {
controller: state.controller,
onChanged: state.didChange,
enabled: state.enabled,
initialValue: state.initialValue,
axis: axis,
spacing: spacing,
runSpacing: runSpacing,
Expand Down

0 comments on commit 65b75df

Please sign in to comment.