Skip to content

Commit

Permalink
update time picker
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro committed Nov 18, 2024
1 parent 6aa98fb commit bff4a25
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 45 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 0.16.0

- **FEAT**: New `ShadTimePicker` and `ShadDatePickerFormField` components.
- **FIX**: `maxLength` and `maxLengthEnforcement` not working on `ShadInput`
- **FIX**: `maxLength`, `maxLengthEnforcement` and `showCursor` not working on `ShadInput`
- **CHORE**: Set minimum Flutter version to `3.24.0`
- **CHORE**: Remove `trackColor` from `ShadSwitch` (thanks to @RaghavTheGreat)

Expand Down
6 changes: 5 additions & 1 deletion example/lib/pages/time_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class TimePickerPage extends StatelessWidget {
children: [
ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 600),
child: const ShadTimePicker(),
child: ShadTimePicker(
onChanged: (time) {
print('time: $time');
},
),
),
],
);
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ class ShadInputState extends State<ShadInput>
textAlign: widget.textAlign,
onTapOutside: widget.onPressedOutside,
rendererIgnoresPointer: true,
showCursor: widget.showCursor,
),
),
),
Expand Down
Loading

0 comments on commit bff4a25

Please sign in to comment.