Skip to content

Commit

Permalink
3.0.0 - update intl
Browse files Browse the repository at this point in the history
  • Loading branch information
Macacoazul01 committed May 14, 2024
1 parent e629b07 commit fc9a52a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 2.12.0 - 2024-05-13
## 3.0.0 - 2024-05-13
- Bumped intl to `0.19.0`.
- Bumped flutter_lints to `4.0.0`.

## 2.12.0 - 2024-05-13
- Added `buttonBorder:` property to allow you define the border of the month/year buttons (default is `const CircleBorder()`) [#92](https://github.com/Macacoazul01/month_picker_dialog/pull/92).
- Added `headerTitle:` property to allow you add a custom title to the header of the dialog (default is `null`) [#92](https://github.com/Macacoazul01/month_picker_dialog/pull/92).

Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class _MyAppState extends State<MyApp> {
roundedCornersRadius: 20,
yearFirst: true,
backgroundColor: Colors.blueGrey[50],
buttonBorder: RoundedRectangleBorder(),
headerTitle: Text('Month Picker Dialog'),
buttonBorder: const RoundedRectangleBorder(),
headerTitle: const Text('Month Picker Dialog'),
// customDivider: Divider(
// color: Colors.black,
// endIndent: 25,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/helpers/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class MonthpickerController {
//selector functions
///function to cancel selecting a month
void cancelFunction(BuildContext context) {
Navigator.pop(context, null);
Navigator.pop(context);
}

///function to confirm selecting a month
Expand Down
2 changes: 1 addition & 1 deletion lib/src/show_month_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Future<DateTime?> showMonthPicker({
bool blockScrolling = true,
BorderSide dialogBorderSide = BorderSide.none,
OutlinedBorder buttonBorder = const CircleBorder(),
Widget? headerTitle = null,
Widget? headerTitle,
}) async {
assert(forceSelectedDate == dismissible || !forceSelectedDate,
'forceSelectedDate can only be used with dismissible = true');
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: 2.12.0
version: 3.0.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.18.1
intl: ^0.19.0

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

0 comments on commit fc9a52a

Please sign in to comment.