fix(app): add HitTestBehavior.opaque to mode toggles in CameraDrawer to resolve tap event bugs
No files matched your search
@@ -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';
|
||||
},
|
||||
|
||||
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 139 KiB |