diff --git a/lib/core/widgets/pdf_viewer_widget.dart b/lib/core/widgets/pdf_viewer_widget.dart index 8d6494d..f83196a 100644 --- a/lib/core/widgets/pdf_viewer_widget.dart +++ b/lib/core/widgets/pdf_viewer_widget.dart @@ -1,10 +1,8 @@ import 'dart:typed_data'; import 'package:flutter/material.dart'; import 'package:flux/core/utils/functions.dart'; -import 'package:get_it/get_it.dart'; import 'package:pdfx/pdfx.dart'; import 'package:internet_file/internet_file.dart'; -import 'package:supabase_flutter/supabase_flutter.dart'; class PdfViewerWidget extends StatefulWidget { final String? storagePath; diff --git a/lib/features/company/models/company_model.dart b/lib/features/company/models/company_model.dart index 7cc8013..4c5c4aa 100644 --- a/lib/features/company/models/company_model.dart +++ b/lib/features/company/models/company_model.dart @@ -293,8 +293,9 @@ extension CompanyLimits on CompanyModel { bool get hasActiveAccess { // 1. Priorità all'override manuale (is_paid e payment_expiration) if (isPaid) { - if (paymentExpiration == null) + if (paymentExpiration == null) { return true; // Pagato "a vita" o senza scadenza + } if (DateTime.now().isBefore(paymentExpiration!)) return true; } diff --git a/lib/features/customers/data/customer_repository.dart b/lib/features/customers/data/customer_repository.dart index 342d1a7..de5da24 100644 --- a/lib/features/customers/data/customer_repository.dart +++ b/lib/features/customers/data/customer_repository.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:file_picker/file_picker.dart'; import 'package:flux/core/blocs/session/session_cubit.dart'; import 'package:flux/core/utils/functions.dart'; diff --git a/lib/features/customers/ui/customers_content.dart b/lib/features/customers/ui/customers_content.dart index 05a056b..46c54cd 100644 --- a/lib/features/customers/ui/customers_content.dart +++ b/lib/features/customers/ui/customers_content.dart @@ -3,7 +3,6 @@ import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flux/core/blocs/session/session_cubit.dart'; import 'package:flux/core/theme/theme.dart'; import 'package:flux/features/customers/blocs/customer_cubit.dart'; -import 'package:flux/features/customers/blocs/customer_files_bloc.dart'; import 'package:flux/features/customers/models/customer_model.dart'; import 'package:flux/features/customers/ui/customer_form.dart'; import 'package:go_router/go_router.dart';