From a03317617a48191dc626b437144062443bafe77f Mon Sep 17 00:00:00 2001 From: ahmed Date: Thu, 25 Jan 2024 18:04:30 +0200 Subject: [PATCH 1/2] -added BoxDecoration for the Picked Date "Row". --- lib/date_picker_theme.dart | 5 +++++ lib/widget/date_picker_widget.dart | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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, From 944d33266f604262f8bb55854393352bc12be6b3 Mon Sep 17 00:00:00 2001 From: ahmed Date: Thu, 25 Jan 2024 18:04:45 +0200 Subject: [PATCH 2/2] -Upgraded Android SDK from 32 to 33. --- example/android/app/build.gradle | 4 ++-- example/android/build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }