diff --git a/example/lib/main.dart b/example/lib/main.dart index 372b608..8c2f8db 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -142,8 +142,8 @@ class _MyAppState extends State { context: contexto, firstDate: DateTime(DateTime.now().year - 5, 5), lastDate: DateTime(DateTime.now().year + 8, 9), - initialRangeDate: DateTime(DateTime.now().year , 5), - endRangeDate: DateTime(DateTime.now().year , 7), + initialRangeDate: DateTime(DateTime.now().year, 5), + endRangeDate: DateTime(DateTime.now().year, 7), confirmWidget: Text( 'This one!', style: TextStyle( diff --git a/lib/src/month_selector/month_button.dart b/lib/src/month_selector/month_button.dart index 2fa74fa..05cde24 100644 --- a/lib/src/month_selector/month_button.dart +++ b/lib/src/month_selector/month_button.dart @@ -65,7 +65,7 @@ class MonthButton extends StatelessWidget { selectedDates.add(controller.endRangeDate!); executeGradient++; } - if (executeGradient==2) { + if (executeGradient == 2) { if (date.isAfter(selectedDates[0]) && date.isBefore(selectedDates[1])) { backgroundColor = HSLColor.fromColor(controller .monthPickerDialogSettings