feat: Enables scan action on reception details

Activates the 'Scan' quick action button on the reception details page to navigate to the scanner. This allows users to initiate a scan directly.
This commit is contained in:
mandreshope 2025-07-29 14:52:21 +03:00
parent 8252cf0b22
commit ad8949e880

View File

@ -2,6 +2,7 @@ import 'package:barcode_scanner/backend/schema/stock_picking/stock_picking_model
import 'package:barcode_scanner/components/components.dart';
import 'package:barcode_scanner/pages/operation/reception/reception_details_page_model.dart';
import 'package:barcode_scanner/pages/operation/reception/reception_page_model.dart';
import 'package:barcode_scanner/router/go_secure_router_builder.dart';
import 'package:barcode_scanner/themes/app_theme.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
@ -45,7 +46,11 @@ class _ReceptionDetailsPageState extends ConsumerState<ReceptionDetailsPage> {
child: ListView(
children: [
const SizedBox(height: 16),
QuickActionComponent(onTapScan: () {}),
QuickActionComponent(
onTapScan: () {
ScannerRoute().push(context);
},
),
const SizedBox(height: 16),
StockPickingCard(
margin: EdgeInsets.symmetric(horizontal: 5),