fix manual input button on scan page (#3306)
malik1004x committed
Jun 6, 2026 at 13:54 UTC
d18986863f7de9c4dd5c41f1cdf83cad6a9a09b3
1 file changed
+30
-27
lib/new-ui/pages/scan_page.dart
+30
-27
@@ -352,33 +352,35 @@ class _ScanPageState extends State<ScanPage> {
352
inactiveColor: Colors.white.withAlpha(102)),
353
),
354
),
355
- Positioned(
356
- bottom: 120,
357
- left: 0,
358
- right: 0,
359
- child: AnimatedOpacity(
360
- duration: Duration(milliseconds: 500),
361
- opacity: isScanningURQR ? 1 : 0,
362
- child: Row(
363
- mainAxisAlignment: MainAxisAlignment.center,
364
- children: [
365
- Text(
366
- "${decoder.processedPartsCount()}",
367
- style: TextStyle(
368
- fontSize: 45,
369
- fontWeight: FontWeight.w500,
370
- color: Theme.of(context).colorScheme.primary),
371
- ),
372
- Text(
373
- "/",
374
- style: TextStyle(
375
- fontSize: 45, color: Theme.of(context).colorScheme.onSurfaceVariant),
376
- ),
377
- Text(
378
- "${decoder.expectedPartCount()}",
379
- style: TextStyle(fontSize: 45, color: Theme.of(context).colorScheme.onSurface),
380
- ),
381
- ],
355
+ IgnorePointer(
356
+ child: Positioned(
357
+ bottom: 120,
358
+ left: 0,
359
+ right: 0,
360
+ child: AnimatedOpacity(
361
+ duration: Duration(milliseconds: 500),
362
+ opacity: isScanningURQR ? 1 : 0,
363
+ child: Row(
364
+ mainAxisAlignment: MainAxisAlignment.center,
365
+ children: [
366
+ Text(
367
+ "${decoder.processedPartsCount()}",
368
+ style: TextStyle(
369
+ fontSize: 45,
370
+ fontWeight: FontWeight.w500,
371
+ color: Theme.of(context).colorScheme.primary),
372
+ ),
373
+ Text(
374
+ "/",
375
+ style: TextStyle(
376
+ fontSize: 45, color: Theme.of(context).colorScheme.onSurfaceVariant),
377
+ ),
378
+ Text(
379
+ "${decoder.expectedPartCount()}",
380
+ style: TextStyle(fontSize: 45, color: Theme.of(context).colorScheme.onSurface),
381
+ ),
382
+ ],
383
+ ),
384
),
385
),
386
)
@@ -463,6 +465,7 @@ class ScanPageButton extends StatelessWidget {
465
Widget build(BuildContext context) {
466
return GestureDetector(
467
onTap: onTap,
468
+ behavior: HitTestBehavior.opaque,
469
child: Container(
470
decoration: BoxDecoration(color: buttonColor, borderRadius: BorderRadius.circular(99999)),
471
child: Padding(