Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions doc/flame/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ major versions of Flame, together with the steps required to migrate your code.
## Migrating from v1.38.0 to v2.0.0


### `MultiDragDispatcher` removed

The deprecated `MultiDragDispatcher` and `MultiDragDispatcherKey` aliases have been removed. Use
`MultiDragScaleDispatcher` and `MultiDragScaleDispatcherKey` instead, if you were using them
directly at all (normally you should just use the mixins).

```dart
// Before
game.findByKey(const MultiDragDispatcherKey())
as MultiDragDispatcher?;

// After
game.findByKey(const MultiDragScaleDispatcherKey())
as MultiDragScaleDispatcher?;
```

Comment thread
luanpotter marked this conversation as resolved.

### `Event.handled` removed in favour of `continuePropagation`

Events used to carry two independent booleans: `handled`, which Flame never set nor read, and
Expand Down
2 changes: 0 additions & 2 deletions packages/flame/lib/events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export 'src/events/callbacks/secondary_tap_callbacks.dart'
export 'src/events/callbacks/tap_callbacks.dart' show TapCallbacks;
export 'src/events/callbacks/tertiary_tap_callbacks.dart'
show TertiaryTapCallbacks;
export 'src/events/deprecated.dart'
show MultiDragDispatcher, MultiDragDispatcherKey;
export 'src/events/dispatchers/dispatcher.dart' show Dispatcher;
export 'src/events/dispatchers/double_tap_dispatcher.dart'
show DoubleTapDispatcher, DoubleTapDispatcherKey;
Expand Down
7 changes: 0 additions & 7 deletions packages/flame/lib/src/events/deprecated.dart

This file was deleted.

Loading