Skip to content

Conversation

ianmaciel
Copy link

The previous implementarion use onTapDown to start dragging instead of the events "onHorizontalDragStart" and "onVerticalDragStart" provided by GestureDetector.

Using onTapDown might confuse users because it requires a few seconds before actually starting the drag and drop event which is not the expected behavior (#18).

This pull request also fix lint issues according to new Flutter and Dart rules (https://medium.com/dartlang/announcing-dart-2-14-b48b9bb2fb67);

As stateless widget must be immutable, this commit fix these issues
by turning all properties to final.
Build method on AutomaticKeepAliveClientMixin is marked with
@mustCallSuper. This commit add a super.build() call before any code
be executed on build method from  BoardView, BoardList and BoardItem.
Local variable headerBackgroundColor was not being used, causing
default value for background color (255, 255, 255) to never be used.

This commit add a proper null check on header container.
Starting on Flutter 2.5, Google established new standards lint rules
for Dart and Flutter (https://medium.com/dartlang/announcing-dart-2-14-b48b9bb2fb67).

This commit update the analysis_options.yaml and fix all code to meet
these guidelines.
The previous implementarion use onTapDown to start dragging instead
of the events "onHorizontalDragStart" and "onVerticalDragStart"
provided by GestureDetector.

Using onTapDown might confuse users because it requires a few seconds
before actually starting the drag and drop event which is not the
expected behavior.
@ianmaciel ianmaciel force-pushed the feature/drag-and-drop-on-click branch from f658cc4 to 67e0090 Compare September 15, 2021 14:58
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.

1 participant