Skip to content

chore: Reorganize callbacks and dispatchers internally#3937

Open
luanpotter wants to merge 1 commit into
mainfrom
luan.the-calls-and-the-disps
Open

chore: Reorganize callbacks and dispatchers internally#3937
luanpotter wants to merge 1 commit into
mainfrom
luan.the-calls-and-the-disps

Conversation

@luanpotter

@luanpotter luanpotter commented Jun 27, 2026

Copy link
Copy Markdown
Member

Description

This is a simple internal reorganization of events folders. This should have no effect for users using the barrel files, as it is strictly incremental.

  • Rename component_mixins to callbacks, as that is their new name
  • Rename flame_game_mixins to dispatchers (they are no longer game mixins)
  • Expose through barrel file several small public classes that were missing
  • Ensure barrel file is complete by using it internally, except when importing internal classes

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

@luanpotter luanpotter force-pushed the luan.the-calls-and-the-disps branch from 5a63285 to 7f24931 Compare June 27, 2026 18:50
@@ -1,4 +1,4 @@
import 'package:flame/src/events/flame_game_mixins/scale_drag_dispatcher.dart';
import 'package:flame/src/events/dispatchers/multi_drag_scale_dispatcher.dart';

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this as is to minimize blast radius when interpreting the deprecated file

@luanpotter luanpotter force-pushed the luan.the-calls-and-the-disps branch from 7f24931 to 9dc4af1 Compare June 27, 2026 18:53
@luanpotter luanpotter marked this pull request as ready for review June 27, 2026 18:59
@luanpotter luanpotter requested a review from spydon June 27, 2026 18:59
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