mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
* feat: partner actions # Conflicts: # i18n/en.json * cleanup * fix tests * ci fix --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
23 lines
549 B
Dart
23 lines
549 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/domain/models/user.model.dart';
|
|
|
|
class ActionScope {
|
|
final BuildContext context;
|
|
final WidgetRef ref;
|
|
final UserDto authUser;
|
|
|
|
const ActionScope({required this.context, required this.ref, required this.authUser});
|
|
}
|
|
|
|
abstract class BaseAction {
|
|
const BaseAction();
|
|
|
|
IconData get icon;
|
|
|
|
String label(ActionScope scope);
|
|
|
|
bool isVisible(ActionScope scope) => true;
|
|
|
|
Future<void> onAction(ActionScope scope);
|
|
}
|