mirror of
https://github.com/block/buzz.git
synced 2026-10-27 20:41:57 +00:00
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:
@@ -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]
|
||||
) {
|
||||
|
||||
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user