Skip to content

Commit 417c367

Browse files
committed
format
1 parent 3ca64c9 commit 417c367

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

lib/src/helpers/settings/date_buttons_settings.dart

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class PickerDateButtonsSettings {
1414
Color? currentYearTextColor,
1515
this.selectedDateRadius = 0,
1616
this.buttonBorder = const CircleBorder(),
17-
}) : unselectedYearsTextColor = unselectedYearsTextColor ?? unselectedMonthsTextColor,
17+
}) : unselectedYearsTextColor =
18+
unselectedYearsTextColor ?? unselectedMonthsTextColor,
1819
selectedYearTextColor = selectedYearTextColor ?? selectedMonthTextColor,
1920
currentYearTextColor = currentYearTextColor ?? currentMonthTextColor,
2021
yearTextStyle = yearTextStyle ?? monthTextStyle;
@@ -90,12 +91,18 @@ class PickerDateButtonsSettings {
9091
return PickerDateButtonsSettings(
9192
monthTextStyle: monthTextStyle ?? this.monthTextStyle,
9293
yearTextStyle: yearTextStyle ?? this.yearTextStyle,
93-
selectedMonthBackgroundColor: selectedMonthBackgroundColor ?? this.selectedMonthBackgroundColor,
94-
selectedMonthTextColor: selectedMonthTextColor ?? this.selectedMonthTextColor,
95-
selectedYearTextColor: selectedYearTextColor ?? this.selectedYearTextColor,
96-
unselectedMonthsTextColor: unselectedMonthsTextColor ?? this.unselectedMonthsTextColor,
97-
unselectedYearsTextColor: unselectedYearsTextColor ?? this.unselectedYearsTextColor,
98-
currentMonthTextColor: currentMonthTextColor ?? this.currentMonthTextColor,
94+
selectedMonthBackgroundColor:
95+
selectedMonthBackgroundColor ?? this.selectedMonthBackgroundColor,
96+
selectedMonthTextColor:
97+
selectedMonthTextColor ?? this.selectedMonthTextColor,
98+
selectedYearTextColor:
99+
selectedYearTextColor ?? this.selectedYearTextColor,
100+
unselectedMonthsTextColor:
101+
unselectedMonthsTextColor ?? this.unselectedMonthsTextColor,
102+
unselectedYearsTextColor:
103+
unselectedYearsTextColor ?? this.unselectedYearsTextColor,
104+
currentMonthTextColor:
105+
currentMonthTextColor ?? this.currentMonthTextColor,
99106
currentYearTextColor: currentYearTextColor ?? this.currentYearTextColor,
100107
selectedDateRadius: selectedDateRadius ?? this.selectedDateRadius,
101108
buttonBorder: buttonBorder ?? this.buttonBorder,

lib/src/helpers/settings/dialog_settings.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,23 @@ class PickerDialogSettings {
114114
EdgeInsets? insetPadding,
115115
}) {
116116
return PickerDialogSettings(
117-
scrollAnimationMilliseconds: scrollAnimationMilliseconds ?? this.scrollAnimationMilliseconds,
117+
scrollAnimationMilliseconds:
118+
scrollAnimationMilliseconds ?? this.scrollAnimationMilliseconds,
118119
textScaleFactor: textScaleFactor ?? this.textScaleFactor,
119120
customHeight: customHeight ?? this.customHeight,
120121
customWidth: customWidth ?? this.customWidth,
121-
dialogRoundedCornersRadius: dialogRoundedCornersRadius ?? this.dialogRoundedCornersRadius,
122+
dialogRoundedCornersRadius:
123+
dialogRoundedCornersRadius ?? this.dialogRoundedCornersRadius,
122124
yearFirst: yearFirst ?? this.yearFirst,
123125
dismissible: dismissible ?? this.dismissible,
124126
forcePortrait: forcePortrait ?? this.forcePortrait,
125127
blockScrolling: blockScrolling ?? this.blockScrolling,
126128
forceSelectedDate: forceSelectedDate ?? this.forceSelectedDate,
127-
capitalizeFirstLetter: capitalizeFirstLetter ?? this.capitalizeFirstLetter,
129+
capitalizeFirstLetter:
130+
capitalizeFirstLetter ?? this.capitalizeFirstLetter,
128131
dialogBorderSide: dialogBorderSide ?? this.dialogBorderSide,
129-
dialogBackgroundColor: dialogBackgroundColor ?? this.dialogBackgroundColor,
132+
dialogBackgroundColor:
133+
dialogBackgroundColor ?? this.dialogBackgroundColor,
130134
locale: locale ?? this.locale,
131135
insetPadding: insetPadding ?? this.insetPadding,
132136
);

lib/src/helpers/settings/header_settings.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,12 @@ class PickerHeaderSettings {
107107
nextIcon: nextIcon ?? this.nextIcon,
108108
headerIconsSize: headerIconsSize ?? this.headerIconsSize,
109109
headerIconsColor: headerIconsColor ?? this.headerIconsColor,
110-
headerBackgroundColor: headerBackgroundColor ?? this.headerBackgroundColor,
111-
headerSelectedIntervalTextStyle: headerSelectedIntervalTextStyle ?? this.headerSelectedIntervalTextStyle,
112-
headerCurrentPageTextStyle: headerCurrentPageTextStyle ?? this.headerCurrentPageTextStyle,
110+
headerBackgroundColor:
111+
headerBackgroundColor ?? this.headerBackgroundColor,
112+
headerSelectedIntervalTextStyle: headerSelectedIntervalTextStyle ??
113+
this.headerSelectedIntervalTextStyle,
114+
headerCurrentPageTextStyle:
115+
headerCurrentPageTextStyle ?? this.headerCurrentPageTextStyle,
113116
titleSpacing: titleSpacing ?? this.titleSpacing,
114117
headerPadding: headerPadding ?? this.headerPadding,
115118
arrowAlpha: arrowAlpha ?? this.arrowAlpha,

0 commit comments

Comments
 (0)