Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use standard datepicker #1064

Open
wants to merge 47 commits into
base: master
Choose a base branch
from

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
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.

5 participants