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

Feature support Flutter 3.2.3 and include working example from earlier pull request #22

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

sjhorn
Copy link

@sjhorn sjhorn commented Dec 20, 2023

Related to

feat/add-example

Context

Updated swayze and swayze_math to support latest flutter (3.2.3) at the time.

Update unit tests for both and golden images.

Approach

Removed libraries and readied the latest started with flutter and test.

Fixed null-check issues and signature changes in swayze and swayze_math.

Then moves to have unit tests pass, most Goldens were within 0.8% and checking by eye could not see issues, so regenerated.

The mocking of DefaultSwayzeAction was having problems with its signature, so worked around using a manual mock and expect instead of verify for the problematic area.

Also a temporal issue with cell test, so adjusted to pumpWidget rather than pumpAndSettle and this removed the non-deterministic issue locally.

All same test now pass.

victorbotamedi and others added 10 commits May 31, 2022 13:15
* Add initial header drag preview implementation

* Add drag column preview

* Rename inner preview widgets

* REname dropHeaderAtPosition

* Add lines preview

* Change mouse curson when hover a selected header

* Reorder preview clean up

* Fix preview using the latest selection

* Render drag preview independet of selections

* Fix selection tap initiating header drag

* Set header index as a range

* Add is header selected method to selection controller

* Move action dispatch to methods

* Fix preview with frozen panes

* Set drop action to move the selection around

* Add header cancel drag intent

* Move dragging property to its own state class

* Rename reorder preview to header drag and drop

* Blocks a drop action within the header range

* Add header drag state test

* Move header drag and drop actions to its own files

* Add intent docs

* Add drag n drop preview theme

* Add docs

* Fix format

* Add a configuration to swayze scope

* Fix test

* Fix const warning

* Fix typos

* Fix some selections no being dragged properly

* Add a brief doc on why we use basic cursor for drag

* Fix header drag and drop with frozen panes

* Move drag state to its own class

* Add end boundary drop test

* Add header gesture detector tests

* Fix dragging overlaping selections

* Set a single action mock

* Typo

* Move drag and drop style to its own class

* Fix comment
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