diff --git a/android/build.gradle b/android/build.gradle index 0cabda9..09e26df 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,7 +22,7 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { - compileSdkVersion 27 + compileSdkVersion 28 defaultConfig { minSdkVersion 16 diff --git a/lib/Picker.dart b/lib/Picker.dart index 2fc1604..f141017 100644 --- a/lib/Picker.dart +++ b/lib/Picker.dart @@ -1127,9 +1127,10 @@ class DateTimePickerAdapter extends PickerAdapter { @override int getColumnFlex(int column) { - if (getColumnType(column) == 0) { + if (picker.columnFlex != null && column < picker.columnFlex.length) + return picker.columnFlex[column]; + if (getColumnType(column) == 0) return 3; - } return 2; }