fix mobile upload
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flux/core/widgets/shared_forms/shared_files_section.dart';
|
||||
import 'package:flux/features/attachments/blocs/attachments_bloc.dart';
|
||||
import 'package:flux/features/operations/blocs/operation_form_cubit.dart';
|
||||
import 'package:flux/features/operations/models/operation_model.dart';
|
||||
@@ -246,10 +245,12 @@ class _OperationFormScreenState extends State<OperationFormScreen> {
|
||||
flex: 3,
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: SharedFilesSection(
|
||||
titleNameForUpload:
|
||||
child: SharedAttachmentsSection(
|
||||
parentType: AttachmentParentType.operation,
|
||||
parentId: state.operation.id,
|
||||
titleForUpload:
|
||||
state.operation.customerDisplayName ??
|
||||
'Nuova operazione',
|
||||
'Nuova pratica',
|
||||
onGenerateIdForQr: _generateIdForQr,
|
||||
),
|
||||
),
|
||||
@@ -408,9 +409,9 @@ class _OperationFormScreenState extends State<OperationFormScreen> {
|
||||
color: _getStatusColor(displayStatus),
|
||||
),
|
||||
items: OperationStatus.values
|
||||
.where(
|
||||
/* .where(
|
||||
(s) => s != OperationStatus.draft,
|
||||
) // Nascondiamo 'Bozza' dal menu
|
||||
) // Nascondiamo 'Bozza' dal menu */
|
||||
.map(
|
||||
(status) => DropdownMenuItem(
|
||||
value: status,
|
||||
@@ -456,7 +457,7 @@ class _OperationFormScreenState extends State<OperationFormScreen> {
|
||||
),
|
||||
const Divider(height: 32),
|
||||
|
||||
_buildSectionTitle('Cliente & Riferimento'),
|
||||
//_buildSectionTitle('Cliente & Riferimento'),
|
||||
SharedCustomerSection(
|
||||
customerId: currentOp.customerId,
|
||||
customerName: currentOp.customerDisplayName,
|
||||
@@ -539,15 +540,18 @@ class _OperationFormScreenState extends State<OperationFormScreen> {
|
||||
const Divider(height: 32),
|
||||
|
||||
if (showFiles) ...[
|
||||
/* SharedAttachmentsSection(
|
||||
SharedAttachmentsSection(
|
||||
parentType: AttachmentParentType.operation,
|
||||
parentId: currentOp.id,
|
||||
), */
|
||||
SharedFilesSection(
|
||||
titleNameForUpload:
|
||||
titleForUpload:
|
||||
state.operation.customerDisplayName ?? 'Nuova pratica',
|
||||
onGenerateIdForQr: _generateIdForQr,
|
||||
),
|
||||
/* SharedFilesSection(
|
||||
titleNameForUpload:
|
||||
state.operation.customerDisplayName ?? 'Nuova pratica',
|
||||
onGenerateIdForQr: _generateIdForQr,
|
||||
), */
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user