mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
18 lines
651 B
Dart
18 lines
651 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/models/upload/share_intent_attachment.model.dart';
|
|
import 'package:immich_mobile/repositories/share_handler.repository.dart';
|
|
|
|
final shareIntentServiceProvider = Provider((ref) => ShareIntentService(ref.watch(shareHandlerRepositoryProvider)));
|
|
|
|
class ShareIntentService {
|
|
final ShareHandlerRepository shareHandlerRepository;
|
|
void Function(List<ShareIntentAttachment> attachments)? onSharedMedia;
|
|
|
|
ShareIntentService(this.shareHandlerRepository);
|
|
|
|
void init() {
|
|
shareHandlerRepository.onSharedMedia = onSharedMedia;
|
|
shareHandlerRepository.init();
|
|
}
|
|
}
|