From 566272f3bc9d80369c1b32d124afc390285368a6 Mon Sep 17 00:00:00 2001 From: Arby Azyumardi Azra <40289741+arbyazra123@users.noreply.github.com> Date: Fri, 27 Nov 2020 15:06:33 +0700 Subject: [PATCH 1/2] removed shadowThemeOnly param due to flutter 1.24 --- lib/src/date_picker.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/date_picker.dart b/lib/src/date_picker.dart index 3bd8f5b..aafe62e 100644 --- a/lib/src/date_picker.dart +++ b/lib/src/date_picker.dart @@ -100,7 +100,6 @@ class DatePicker { onCancel: onCancel, onChange: onChange, onConfirm: onConfirm, - theme: Theme.of(context, shadowThemeOnly: true), barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, minuteDivider: minuteDivider, From 760e5efc5643dd44ef8d0b103d2b9215c60563e6 Mon Sep 17 00:00:00 2001 From: Adam Wibowo Date: Fri, 27 Nov 2020 15:25:56 +0700 Subject: [PATCH 2/2] updated DiagnosticableMixin to Diagnosticable --- lib/src/date_picker_theme.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/date_picker_theme.dart b/lib/src/date_picker_theme.dart index 08bfffc..19b963f 100644 --- a/lib/src/date_picker_theme.dart +++ b/lib/src/date_picker_theme.dart @@ -20,7 +20,7 @@ const double DATETIME_PICKER_ITEM_HEIGHT = 36.0; const TextStyle DATETIME_PICKER_ITEM_TEXT_STYLE = const TextStyle(color: Color(0xFF000046), fontSize: 16.0); -class DateTimePickerTheme with DiagnosticableMixin { +class DateTimePickerTheme with Diagnosticable { final cancelDefault = const Text('OK'); /// DateTimePicker theme.