Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
5 changes: 5 additions & 0 deletions lib/date_picker_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

}
3 changes: 2 additions & 1 deletion lib/widget/date_picker_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ class _DatePickerWidgetState extends State<DatePickerWidget> {
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,
Expand Down