Skip to content

Conversation

@bastaware
Copy link

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

After:
image

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());
                        }
                        ),

bastaware and others added 30 commits May 24, 2023 01:48
…nt_deprecation

Fixes bosskmk#6 Migrate RawKeyboardEvent and related implications according …
Adds the possibility to get the value before the format happens. original value and getter
added more personalization options
doonfrs and others added 17 commits March 19, 2024 00:30
added:
- added MouseRegion to pluto_base_cell.dart to achieve hovering logic
- added onRowEnter, onRowExit callback methods for PlutoGrid
- added isHovered variable to _getRowColor in pluto_base_row.dart to change background color based on configuration
- added rowHoveredColor to configuration
added:
- added enableRowHoverColor option to configuration

changed:
- modified tests for hovering rows feature
- simplified IHoveringState and HoveringState
- moved MouseRegion from pluto_base_cell.dart to pluto_base_row.dart because it was not working before and is the more appropriate place
…Clients to prevent Exceptions caused by async events
Change background color of a row when hovered and add callback methods
Prevent Exceptions from async events in pluto_lazy_pagination.dart
@stan-at-work
Copy link

Please create this in pluto_grid_plus this repo is dead

https://github.com/doonfrs/pluto_grid_plus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants