Soften camera startup with a 180 ms fade

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 19:07:40 +00:00
parent 12c7d5935d
commit 37194be4db

View File

@@ -38,7 +38,7 @@ class _QrScannerCamera extends HookWidget {
opacity: ready || state.error != null ? 1 : 0,
duration: MediaQuery.disableAnimationsOf(context) || state.error != null
? Duration.zero
: const Duration(milliseconds: 120),
: const Duration(milliseconds: 180),
curve: Curves.easeOut,
child: MobileScanner(
controller: controller,