handleScaleUpdate method

Future<void> handleScaleUpdate(
  1. ScaleUpdateDetails details
)

Handle when the double tap scale details is updating. 处理双指缩放更新

Implementation

Future<void> handleScaleUpdate(ScaleUpdateDetails details) async {
  // When there are not exactly two fingers on screen don't scale
  if (pointers != 2) {
    return;
  }
  zoom(details.scale);
}