From 9a95a13649b6ed7505b40998cd236f6190ae6827 Mon Sep 17 00:00:00 2001 From: M123-dev Date: Thu, 13 Jan 2022 16:10:32 +0100 Subject: [PATCH] fix: Scanner preview over other widgets fix --- .../lib/pages/scan/continuous_scan_page.dart | 10 ++++---- .../lib/pages/scan/ml_kit_scan_page.dart | 10 ++++---- packages/smooth_app/pubspec.lock | 25 +++++++++++++++++-- 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/packages/smooth_app/lib/pages/scan/continuous_scan_page.dart b/packages/smooth_app/lib/pages/scan/continuous_scan_page.dart index dc75c98365e..a7b3cec0ebc 100644 --- a/packages/smooth_app/lib/pages/scan/continuous_scan_page.dart +++ b/packages/smooth_app/lib/pages/scan/continuous_scan_page.dart @@ -39,11 +39,6 @@ class _ContinuousScanPageState extends State { appBar: AppBar(toolbarHeight: 0.0), body: Stack( children: [ - ...getScannerWidgets( - context, - constraints, - _model, - ), SmoothRevealAnimation( delay: 400, startOffset: Offset.zero, @@ -59,6 +54,11 @@ class _ContinuousScanPageState extends State { onQRViewCreated: setupScanner, ), ), + ...getScannerWidgets( + context, + constraints, + _model, + ), ], ), ); diff --git a/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart b/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart index 35d734130fa..6b8a05d1b28 100644 --- a/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart +++ b/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart @@ -105,11 +105,6 @@ class MLKitScannerPageState extends State { return Stack( fit: StackFit.expand, children: [ - ...getScannerWidgets( - context, - constraints, - _model, - ), SmoothRevealAnimation( delay: 400, startOffset: Offset.zero, @@ -123,6 +118,11 @@ class MLKitScannerPageState extends State { ), ), ), + ...getScannerWidgets( + context, + constraints, + _model, + ), ], ); }, diff --git a/packages/smooth_app/pubspec.lock b/packages/smooth_app/pubspec.lock index 675f1d61f62..b83f5ef70ec 100644 --- a/packages/smooth_app/pubspec.lock +++ b/packages/smooth_app/pubspec.lock @@ -183,6 +183,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.2.1" + device_frame: + dependency: transitive + description: + name: device_frame + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + device_preview: + dependency: "direct main" + description: + name: device_preview + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" fake_async: dependency: transitive description: @@ -329,6 +343,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.8.4" + freezed_annotation: + dependency: transitive + description: + name: freezed_annotation + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" fwfh_text_style: dependency: transitive description: @@ -1049,5 +1070,5 @@ packages: source: hosted version: "3.1.0" sdks: - dart: ">=2.14.0 <3.0.0" - flutter: ">=2.5.0" + dart: ">=2.15.1 <3.0.0" + flutter: ">=2.6.0-0"