Open bastaware opened 4 weeks ago
Added functionality to allow developers to choose between the standard Material DatePicker or a custom datepicker.
Without this, PlutoGrid will always use the build in date picker that does not handle localization.
Before:
After:
Example of usage:
child: PlutoGrid( columns: controller.createTableColumns(), rows: rows, selectDateCallback: (PlutoCell cell, PlutoColumn column) async { return showDatePicker( context: context, initialDate: PlutoDateTimeHelper.parseOrNullWithFormat( cell.value, column.type.date.format, ) ?? DateTime.now(), firstDate: startDate, lastDate: DateTime.now()); } ),
Added functionality to allow developers to choose between the standard Material DatePicker or a custom datepicker.
Without this, PlutoGrid will always use the build in date picker that does not handle localization.
Before:![image](https://github.com/bosskmk/pluto_grid/assets/1000036/ee158597-c595-4edc-9de4-136e9b6423df)
After:![image](https://github.com/bosskmk/pluto_grid/assets/1000036/6720234c-6750-4886-a661-63694651bb68)
Example of usage: