Speed up synchronized scanner motion to 280 ms

Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
Signed-off-by: kenny lopez <klopez4212@gmail.com>
This commit is contained in:
kenny lopez
2026-10-26 18:48:39 +00:00
parent dc5cccf937
commit f2443da42d
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class BuzzFlutterViewController: FlutterViewController {
guard scannerHidesStatusBar != hidden else { return }
scannerHidesStatusBar = hidden
UIView.animate(
withDuration: UIAccessibility.isReduceMotionEnabled ? 0 : 0.3,
withDuration: UIAccessibility.isReduceMotionEnabled ? 0 : 0.28,
delay: 0,
options: [.beginFromCurrentState, .curveEaseInOut]
) {

View File

@@ -2,8 +2,8 @@ part of '../pairing_qr_scanner.dart';
// A smooth, non-bouncy spring inspired by Apple's public motion guidance;
// these are our timings, not private Dynamic Island animation constants.
const _dynamicIslandOpenDuration = Duration(milliseconds: 300);
const _dynamicIslandCloseDuration = Duration(milliseconds: 300);
const _dynamicIslandOpenDuration = Duration(milliseconds: 280);
const _dynamicIslandCloseDuration = Duration(milliseconds: 280);
class _DynamicIslandQrScannerPortal extends HookWidget {
const _DynamicIslandQrScannerPortal({this.onProgress});