diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index c5127a8..520d93a 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 32 + compileSdkVersion 33 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -40,7 +40,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.kfiross44.holo_date_picker_example" minSdkVersion 21 - targetSdkVersion 32 + targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/example/android/build.gradle b/example/android/build.gradle index 791c01b..c45ad12 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/lib/date_picker_theme.dart b/lib/date_picker_theme.dart index 30b4f91..93fbe62 100644 --- a/lib/date_picker_theme.dart +++ b/lib/date_picker_theme.dart @@ -54,6 +54,7 @@ class DateTimePickerTheme { this.itemHeight = DATETIME_PICKER_ITEM_HEIGHT, this.itemTextStyle = DATETIME_PICKER_ITEM_TEXT_STYLE, this.dividerColor, + this.pickedDateDecoration }); static const DateTimePickerTheme Default = const DateTimePickerTheme(); @@ -93,4 +94,8 @@ class DateTimePickerTheme { /// The value of DatePicker's Divider Color [TextStyle]. final Color? dividerColor; + + /// now you can Modify the Decoration around the picked Date [Row]. + final Decoration? pickedDateDecoration; + } diff --git a/lib/widget/date_picker_widget.dart b/lib/widget/date_picker_widget.dart index cf92932..319fcc4 100644 --- a/lib/widget/date_picker_widget.dart +++ b/lib/widget/date_picker_widget.dart @@ -202,7 +202,8 @@ class _DatePickerWidgetState extends State { decoration: BoxDecoration(color: widget.pickerTheme!.backgroundColor), child: CupertinoPicker( - selectionOverlay: Container(), + selectionOverlay: + Container(decoration: widget.pickerTheme!.pickedDateDecoration), backgroundColor: widget.pickerTheme!.backgroundColor, scrollController: scrollCtrl, squeeze: 0.95,