fix(app): add HitTestBehavior.opaque to mode toggles in CameraDrawer to resolve tap event bugs

This commit is contained in:
Rafhan Mazaya Fathurrahman committed 2026-07-09 12:50:24 +07:00
1 parent 577be04308
commit b146c91585
17 files changed
+3 -1

No files matched your search

+3 -1
View File
@@ -134,8 +134,9 @@ class _CameraDrawerState extends ConsumerState<CameraDrawer> {
padding: const EdgeInsets.all(4.0),
child: Row(
children: [
Expanded(
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
ref.read(scanModeProvider.notifier).state = 'DO';
},
@@ -177,6 +178,7 @@ class _CameraDrawerState extends ConsumerState<CameraDrawer> {
),
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
ref.read(scanModeProvider.notifier).state = 'Product';
},
Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB