fix manual input button on scan page (#3306)

This commit is contained in:
malik1004x
2026-06-06 13:54:12 +02:00
committed by GitHub
parent 1264fdbaa0
commit d18986863f
+30 -27
View File
@@ -352,33 +352,35 @@ class _ScanPageState extends State<ScanPage> {
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(