diff --git a/lib/new-ui/pages/scan_page.dart b/lib/new-ui/pages/scan_page.dart index a82d5cb59..3f38660f6 100644 --- a/lib/new-ui/pages/scan_page.dart +++ b/lib/new-ui/pages/scan_page.dart @@ -352,33 +352,35 @@ class _ScanPageState extends State { inactiveColor: Colors.white.withAlpha(102)), ), ), - Positioned( - bottom: 120, - left: 0, - right: 0, - child: AnimatedOpacity( - duration: Duration(milliseconds: 500), - opacity: isScanningURQR ? 1 : 0, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - "${decoder.processedPartsCount()}", - style: TextStyle( - fontSize: 45, - fontWeight: FontWeight.w500, - color: Theme.of(context).colorScheme.primary), - ), - Text( - "/", - style: TextStyle( - fontSize: 45, color: Theme.of(context).colorScheme.onSurfaceVariant), - ), - Text( - "${decoder.expectedPartCount()}", - style: TextStyle(fontSize: 45, color: Theme.of(context).colorScheme.onSurface), - ), - ], + IgnorePointer( + child: Positioned( + bottom: 120, + left: 0, + right: 0, + child: AnimatedOpacity( + duration: Duration(milliseconds: 500), + opacity: isScanningURQR ? 1 : 0, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + "${decoder.processedPartsCount()}", + style: TextStyle( + fontSize: 45, + fontWeight: FontWeight.w500, + color: Theme.of(context).colorScheme.primary), + ), + Text( + "/", + style: TextStyle( + fontSize: 45, color: Theme.of(context).colorScheme.onSurfaceVariant), + ), + Text( + "${decoder.expectedPartCount()}", + style: TextStyle(fontSize: 45, color: Theme.of(context).colorScheme.onSurface), + ), + ], + ), ), ), ) @@ -463,6 +465,7 @@ class ScanPageButton extends StatelessWidget { Widget build(BuildContext context) { return GestureDetector( onTap: onTap, + behavior: HitTestBehavior.opaque, child: Container( decoration: BoxDecoration(color: buttonColor, borderRadius: BorderRadius.circular(99999)), child: Padding(