Skip to content

Commit

Permalink
5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Macacoazul01 committed Dec 14, 2024
1 parent e90b186 commit 8688cb9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 5.2.0 - 2024-12-14
- Bumped intl to `0.20.0`. Fixes [#107](https://github.com/Macacoazul01/month_picker_dialog/issues/107).
- Bumped flutter_lints to `5.0.0`.
- Fixed flutter `3.27.0` deprecations.

## 5.1.3 - 2024-09-07
- Fixed [#106](https://github.com/Macacoazul01/month_picker_dialog/issues/106).
- Updated android sample.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/month_picker_widgets/button_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PickerButtonBar extends StatelessWidget {
? TextScaler.linear(controller
.monthPickerDialogSettings.dialogSettings.textScaleFactor!)
: null;
return ButtonBar(
return OverflowBar(
children: <Widget>[
TextButton(
onPressed: () => controller.cancelFunction(context),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/month_picker_widgets/header/header_arrows.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ class HeaderArrows extends StatelessWidget {
IconButton(
icon: Icon(
previousIcon ?? Icons.keyboard_arrow_up,
color: upState ? arrowcolors : arrowcolors!.withOpacity(0.5),
color: upState ? arrowcolors : arrowcolors!.withValues(alpha: 0.5),
size: arrowSize,
),
onPressed: upState ? onUpButtonPressed : null,
),
IconButton(
icon: Icon(
nextIcon ?? Icons.keyboard_arrow_down,
color: downState ? arrowcolors : arrowcolors!.withOpacity(0.5),
color: downState ? arrowcolors : arrowcolors!.withValues(alpha: 0.5),
size: arrowSize,
),
onPressed: downState ? onDownButtonPressed : null,
Expand Down
1 change: 1 addition & 0 deletions lib/src/month_selector/month_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class MonthSelectorState extends State<MonthSelector> {
Future<void>.delayed(
Duration.zero,
() {
// ignore: use_build_context_synchronously
Provider.of<MonthUpDownPageProvider>(context, listen: false).changePage(
0,
widget.controller.localFirstDate == null
Expand Down
1 change: 1 addition & 0 deletions lib/src/year_selector/year_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class YearSelectorState extends State<YearSelector> {
Future<void>.delayed(
Duration.zero,
() {
// ignore: use_build_context_synchronously
Provider.of<YearUpDownPageProvider>(context, listen: false).changePage(
widget.controller.localFirstDate == null
? widget.controller.yearPageController!.page!.toInt() * 12 + 11
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: month_picker_dialog
description: Internationalized dialog for picking a single month from an infinite list of years.
version: 5.1.3
version: 5.2.0
homepage: https://github.com/hmkrivoj/month_picker_dialog

environment:
Expand All @@ -10,10 +10,10 @@ dependencies:
flutter:
sdk: flutter
provider: ^6.1.2
intl: ^0.19.0
intl: ^0.20.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0
flutter:

0 comments on commit 8688cb9

Please sign in to comment.