From 6844d1e5878f5b657931c75537c2a4b2062dcadd Mon Sep 17 00:00:00 2001 From: Arseni Date: Wed, 11 Feb 2026 19:14:37 +0300 Subject: [PATCH] small fixed for build to run --- .../pshared/lib/provider/organizations.dart | 53 ------------------- .../provider/payment/multiple/quotation.dart | 4 -- 2 files changed, 57 deletions(-) diff --git a/frontend/pshared/lib/provider/organizations.dart b/frontend/pshared/lib/provider/organizations.dart index ddaa45dc..1c8bd816 100644 --- a/frontend/pshared/lib/provider/organizations.dart +++ b/frontend/pshared/lib/provider/organizations.dart @@ -2,8 +2,6 @@ import 'package:flutter/material.dart'; import 'package:collection/collection.dart'; -import 'package:share_plus/share_plus.dart'; - import 'package:pshared/config/constants.dart'; import 'package:pshared/models/organization/organization.dart'; import 'package:pshared/provider/resource.dart'; @@ -90,55 +88,4 @@ class OrganizationsProvider extends ChangeNotifier { // Best-effort cleanup of stored selection to avoid using stale org on next login. await SecureStorageService.delete(Constants.currentOrgKey); } - - Future uploadLogo(XFile logoFile) async { - if (!isOrganizationSet) { - throw StateError('Organization is not set'); - } - - _setResource(_resource.copyWith(isLoading: true, error: null)); - try { - final updated = await OrganizationService.uploadLogoAndUpdate(current, logoFile); - final updatedList = organizations - .map((org) => org.id == updated.id ? updated : org) - .toList(growable: false); - _setResource(Resource(data: updatedList, isLoading: false)); - _currentOrg = updated.id; - return updated; - } catch (e) { - _setResource(_resource.copyWith(isLoading: false, error: toException(e))); - rethrow; - } - } - - Future updateCurrent({ - String? name, - String? description, - String? timeZone, - String? logoUrl, - }) async { - if (!isOrganizationSet) { - throw StateError('Organization is not set'); - } - - _setResource(_resource.copyWith(isLoading: true, error: null)); - try { - final updated = await OrganizationService.updateSettings( - current, - name: name, - description: description, - timeZone: timeZone, - logoUrl: logoUrl, - ); - final updatedList = organizations - .map((org) => org.id == updated.id ? updated : org) - .toList(growable: false); - _setResource(Resource(data: updatedList, isLoading: false)); - _currentOrg = updated.id; - return updated; - } catch (e) { - _setResource(_resource.copyWith(isLoading: false, error: toException(e))); - rethrow; - } - } } diff --git a/frontend/pshared/lib/provider/payment/multiple/quotation.dart b/frontend/pshared/lib/provider/payment/multiple/quotation.dart index 53ed3880..e5ecd046 100644 --- a/frontend/pshared/lib/provider/payment/multiple/quotation.dart +++ b/frontend/pshared/lib/provider/payment/multiple/quotation.dart @@ -133,8 +133,4 @@ class MultiQuotationProvider extends ChangeNotifier { notifyListeners(); } - @override - void dispose() { - super.dispose(); - } } -- 2.49.1