Skip to content

Commit 5c031b4

Browse files
committed
v6.0.0
1 parent b6c628b commit 5c031b4

10 files changed

Lines changed: 18 additions & 11 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 6.0.0
2+
3+
- Revert removing `DeviceOrientationBuilder` in favor of rename it.
4+
- Fix semantic. fixes [#39](https://github.com/hasanmhallak/date_picker/issues/39)
5+
- Resolve conflicts with Flutter v3.41.0. fixes [#43](https://github.com/hasanmhallak/date_picker/issues/43)
6+
- Add decoration to the pageview sliders.
7+
18
# 5.0.0
29

310
- Remove `DeviceOrientationBuilder` in favor of Flutter Native one interduce in Material Package.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use the Date Picker library, add the following dependency to your `pubspec.ya
2626

2727
```yaml
2828
dependencies:
29-
date_picker_plus: ^5.0.0
29+
date_picker_plus: ^6.0.0
3030
```
3131
3232
Import the library in your Dart file:

lib/src/date/days_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class _DaysPickerState extends State<DaysPicker> {
428428
//
429429
//
430430

431-
return DeviceOrientationBuilder(builder: (context, o) {
431+
return PickerDeviceOrientationBuilder(builder: (context, o) {
432432
late final Size size;
433433
switch (o) {
434434
case Orientation.portrait:

lib/src/date/show_date_picker_dialog.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Future<DateTime?> showDatePickerDialog({
8282
useRootNavigator: useRootNavigator,
8383
useSafeArea: useSafeArea,
8484
builder: (context) {
85-
return DeviceOrientationBuilder(builder: (context, o) {
85+
return PickerDeviceOrientationBuilder(builder: (context, o) {
8686
late final Size size;
8787
switch (o) {
8888
case Orientation.portrait:

lib/src/range/range_days_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class __RangeDaysPickerState extends State<RangeDaysPicker> {
413413
//
414414
//
415415

416-
return DeviceOrientationBuilder(builder: (context, o) {
416+
return PickerDeviceOrientationBuilder(builder: (context, o) {
417417
late final Size size;
418418
switch (o) {
419419
case Orientation.portrait:

lib/src/range/show_range_picker_dialog.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Future<DateTimeRange?> showRangePickerDialog({
8383
useRootNavigator: useRootNavigator,
8484
useSafeArea: useSafeArea,
8585
builder: (context) {
86-
return DeviceOrientationBuilder(builder: (context, o) {
86+
return PickerDeviceOrientationBuilder(builder: (context, o) {
8787
late final Size size;
8888
switch (o) {
8989
case Orientation.portrait:

lib/src/shared/device_orientation_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import 'package:flutter/material.dart';
22

33
/// Builds a widget tree that can depend on the device orientation.
4-
class DeviceOrientationBuilder extends StatelessWidget {
4+
class PickerDeviceOrientationBuilder extends StatelessWidget {
55
/// Builds a widget tree that can depend on the device orientation.
66
final Widget Function(BuildContext context, Orientation orientation) builder;
77

88
/// Builds a widget tree that can depend on the device orientation.
9-
const DeviceOrientationBuilder({
9+
const PickerDeviceOrientationBuilder({
1010
super.key,
1111
required this.builder,
1212
});

lib/src/shared/month_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class _MonthPickerState extends State<MonthPicker> {
405405
//
406406
//
407407

408-
return DeviceOrientationBuilder(builder: (context, o) {
408+
return PickerDeviceOrientationBuilder(builder: (context, o) {
409409
late final Size size;
410410
switch (o) {
411411
case Orientation.portrait:

lib/src/shared/year_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class _YearsPickerState extends State<YearsPicker> {
424424
//
425425
//
426426

427-
return DeviceOrientationBuilder(builder: (context, o) {
427+
return PickerDeviceOrientationBuilder(builder: (context, o) {
428428
late final Size size;
429429
switch (o) {
430430
case Orientation.portrait:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: date_picker_plus
22
description: A Flutter library that provides a customizable Material Design date and range picker widgets.
3-
version: 5.0.0
3+
version: 6.0.0
44

55
repository: https://github.com/hasanmhallak/date_picker
66

@@ -16,7 +16,7 @@ dependencies:
1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
19-
flutter_lints: ">=2.0.0"
19+
flutter_lints: ">=2.0.0 < 20.0.0"
2020
flutter_localizations:
2121
sdk: flutter
2222

0 commit comments

Comments
 (0)