diff --git a/lib/src/month_picker_dialog.dart b/lib/src/month_picker_dialog.dart index 8acfa1c..3df3ea6 100644 --- a/lib/src/month_picker_dialog.dart +++ b/lib/src/month_picker_dialog.dart @@ -85,8 +85,11 @@ class MonthPickerDialogState extends State { theme: widget.controller.theme, controller: widget.controller, ), - if (widget.controller.monthPickerDialogSettings.actionBarSettings.customDivider != null) - widget.controller.monthPickerDialogSettings.actionBarSettings.customDivider!, + if (widget.controller.monthPickerDialogSettings.actionBarSettings + .customDivider != + null) + widget.controller.monthPickerDialogSettings.actionBarSettings + .customDivider!, PickerActionBar( controller: widget.controller, ), diff --git a/lib/src/month_picker_widgets/action_bar.dart b/lib/src/month_picker_widgets/action_bar.dart index 9e7fb6e..0e1df53 100644 --- a/lib/src/month_picker_widgets/action_bar.dart +++ b/lib/src/month_picker_widgets/action_bar.dart @@ -20,11 +20,13 @@ class PickerActionBar extends StatelessWidget { .monthPickerDialogSettings.dialogSettings.textScaleFactor!) : null; return OverflowBar( - spacing: controller.monthPickerDialogSettings.actionBarSettings.buttonSpacing, + spacing: + controller.monthPickerDialogSettings.actionBarSettings.buttonSpacing, children: [ TextButton( onPressed: () => controller.cancelFunction(context), - child: controller.monthPickerDialogSettings.actionBarSettings.cancelWidget ?? + child: controller + .monthPickerDialogSettings.actionBarSettings.cancelWidget ?? Text( localizations.cancelButtonLabel, textScaler: scaler, @@ -32,7 +34,8 @@ class PickerActionBar extends StatelessWidget { ), TextButton( onPressed: () => controller.okFunction(context), - child: controller.monthPickerDialogSettings.actionBarSettings.confirmWidget ?? + child: controller + .monthPickerDialogSettings.actionBarSettings.confirmWidget ?? Text( localizations.okButtonLabel, textScaler: scaler, diff --git a/lib/src/month_picker_widgets/header/header_arrows.dart b/lib/src/month_picker_widgets/header/header_arrows.dart index 1e54ca4..3f96fd8 100644 --- a/lib/src/month_picker_widgets/header/header_arrows.dart +++ b/lib/src/month_picker_widgets/header/header_arrows.dart @@ -35,7 +35,8 @@ class HeaderArrows extends StatelessWidget { IconButton( icon: Icon( nextIcon ?? Icons.keyboard_arrow_down, - color: downState ? arrowcolors : arrowcolors!.withValues(alpha: 0.5), + color: + downState ? arrowcolors : arrowcolors!.withValues(alpha: 0.5), size: arrowSize, ), onPressed: downState ? onDownButtonPressed : null, diff --git a/lib/src/month_selector/month_button.dart b/lib/src/month_selector/month_button.dart index c81b452..9692abc 100644 --- a/lib/src/month_selector/month_button.dart +++ b/lib/src/month_selector/month_button.dart @@ -51,8 +51,8 @@ class MonthButton extends StatelessWidget { /// If not provided, the customization will be built from the app's theme. ButtonStyle _buildDefaultMonthStyle() { Color? backgroundColor; - Color? foregroundColor = controller - .monthPickerDialogSettings.dateButtonsSettings.unselectedMonthsTextColor; + Color? foregroundColor = controller.monthPickerDialogSettings + .dateButtonsSettings.unselectedMonthsTextColor; final List selectedDates = []; if (controller.rangeMode) { @@ -106,11 +106,12 @@ class MonthButton extends StatelessWidget { } return TextButton.styleFrom( - textStyle: - controller.monthPickerDialogSettings.dateButtonsSettings.monthTextStyle, + textStyle: controller + .monthPickerDialogSettings.dateButtonsSettings.monthTextStyle, foregroundColor: foregroundColor, backgroundColor: backgroundColor, - shape: controller.monthPickerDialogSettings.dateButtonsSettings.buttonBorder, + shape: + controller.monthPickerDialogSettings.dateButtonsSettings.buttonBorder, ); } diff --git a/lib/src/year_selector/year_button.dart b/lib/src/year_selector/year_button.dart index f936d70..ca28c68 100644 --- a/lib/src/year_selector/year_button.dart +++ b/lib/src/year_selector/year_button.dart @@ -61,8 +61,8 @@ class YearButton extends StatelessWidget { .dateButtonsSettings.selectedMonthBackgroundColor ?? theme.colorScheme.secondary; final ButtonStyle yearStyle = TextButton.styleFrom( - textStyle: - controller.monthPickerDialogSettings.dateButtonsSettings.yearTextStyle, + textStyle: controller + .monthPickerDialogSettings.dateButtonsSettings.yearTextStyle, foregroundColor: isTheSelectedYear ? theme.textTheme.labelLarge! .copyWith( @@ -78,7 +78,8 @@ class YearButton extends StatelessWidget { : controller.monthPickerDialogSettings.dateButtonsSettings .unselectedYearsTextColor, backgroundColor: isTheSelectedYear ? backgroundColor : null, - shape: controller.monthPickerDialogSettings.dateButtonsSettings.buttonBorder, + shape: + controller.monthPickerDialogSettings.dateButtonsSettings.buttonBorder, ); return yearStyle; } diff --git a/test/month_picker_dialog_test.dart b/test/month_picker_dialog_test.dart index 46373a1..bd68796 100644 --- a/test/month_picker_dialog_test.dart +++ b/test/month_picker_dialog_test.dart @@ -63,7 +63,8 @@ void main() { controller.firstPossibleMonth(2120); expect(controller.selectedDate, DateTime(2120, 2)); expect( - controller.monthPickerDialogSettings.dateButtonsSettings.selectedDateRadius, + controller + .monthPickerDialogSettings.dateButtonsSettings.selectedDateRadius, 1); expect(controller.monthPickerDialogSettings.dialogSettings.forcePortrait, true);