Skip to content

Commit fd01812

Browse files
authored
Add temporary default case to support new PointerSignalKind (#120731)
* add default case to prep for engine pr * combine unknown w default * fixed todo comment not inline with flutter standards
1 parent 5a3957f commit fd01812

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/flutter/lib/src/gestures/converter.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ class PointerEventConverter {
278278
scale: datum.scale,
279279
);
280280
case ui.PointerSignalKind.unknown:
281+
default: // ignore: no_default_cases, to allow adding a new [PointerSignalKind] - PointerStylusAuxiliaryAction
282+
// TODO(louisehsu): remove after landing engine PR https://github.com/flutter/engine/pull/39637
281283
// This branch should already have 'unknown' filtered out, but
282284
// we don't want to return anything or miss if someone adds a new
283285
// enumeration to PointerSignalKind.

0 commit comments

Comments
 (0)