Skip to content

Commit

Permalink
Add temporary default case to support new PointerSignalKind (#120731)
Browse files Browse the repository at this point in the history
* add default case to prep for engine pr

* combine unknown w default

* fixed todo comment not inline with flutter standards
  • Loading branch information
LouiseHsu authored Feb 15, 2023
1 parent 5a3957f commit fd01812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/flutter/lib/src/gestures/converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ class PointerEventConverter {
scale: datum.scale,
);
case ui.PointerSignalKind.unknown:
default: // ignore: no_default_cases, to allow adding a new [PointerSignalKind] - PointerStylusAuxiliaryAction
// TODO(louisehsu): remove after landing engine PR https://github.com/flutter/engine/pull/39637
// This branch should already have 'unknown' filtered out, but
// we don't want to return anything or miss if someone adds a new
// enumeration to PointerSignalKind.
Expand Down

0 comments on commit fd01812

Please sign in to comment.