110 lines
2.5 KiB
Dart
110 lines
2.5 KiB
Dart
import 'package:aves/model/entry/entry.dart';
|
|
import 'package:aves/model/filters/filters.dart';
|
|
import 'package:aves_model/aves_model.dart';
|
|
import 'package:aves_video/aves_video.dart';
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
@immutable
|
|
class LockViewNotification extends Notification {
|
|
final bool locked;
|
|
|
|
const LockViewNotification({required this.locked});
|
|
}
|
|
|
|
@immutable
|
|
class PopVisualNotification extends Notification {}
|
|
|
|
@immutable
|
|
class ShowImageNotification extends Notification {}
|
|
|
|
@immutable
|
|
class ShowInfoPageNotification extends Notification {}
|
|
|
|
@immutable
|
|
class ShowPreviousEntryNotification extends Notification {
|
|
final bool animate;
|
|
|
|
const ShowPreviousEntryNotification({required this.animate});
|
|
}
|
|
|
|
@immutable
|
|
class ShowNextEntryNotification extends Notification {
|
|
final bool animate;
|
|
|
|
const ShowNextEntryNotification({required this.animate});
|
|
}
|
|
|
|
@immutable
|
|
class ShowEntryNotification extends Notification {
|
|
final bool animate;
|
|
final int index;
|
|
|
|
const ShowEntryNotification({
|
|
required this.animate,
|
|
required this.index,
|
|
});
|
|
}
|
|
|
|
@immutable
|
|
class ShowPreviousVideoNotification extends Notification {}
|
|
|
|
@immutable
|
|
class ShowNextVideoNotification extends Notification {}
|
|
|
|
@immutable
|
|
class ToggleOverlayNotification extends Notification {
|
|
final bool? visible;
|
|
|
|
const ToggleOverlayNotification({this.visible});
|
|
}
|
|
|
|
@immutable
|
|
class TvShowLessInfoNotification extends Notification {}
|
|
|
|
@immutable
|
|
class TvShowMoreInfoNotification extends Notification {}
|
|
|
|
@immutable
|
|
class VideoActionNotification extends Notification {
|
|
final AvesVideoController controller;
|
|
final AvesEntry entry;
|
|
final EntryAction action;
|
|
|
|
const VideoActionNotification({
|
|
required this.controller,
|
|
required this.entry,
|
|
required this.action,
|
|
});
|
|
}
|
|
|
|
@immutable
|
|
class FilterSelectedNotification extends Notification with EquatableMixin {
|
|
final CollectionFilter filter;
|
|
|
|
@override
|
|
List<Object?> get props => [filter];
|
|
|
|
const FilterSelectedNotification(this.filter);
|
|
}
|
|
|
|
@immutable
|
|
class EntryDeletedNotification extends Notification with EquatableMixin {
|
|
final Set<AvesEntry> entries;
|
|
|
|
@override
|
|
List<Object?> get props => [entries];
|
|
|
|
const EntryDeletedNotification(this.entries);
|
|
}
|
|
|
|
@immutable
|
|
class EntryMovedNotification extends Notification with EquatableMixin {
|
|
final MoveType moveType;
|
|
final Set<AvesEntry> entries;
|
|
|
|
@override
|
|
List<Object?> get props => [moveType, entries];
|
|
|
|
const EntryMovedNotification(this.moveType, this.entries);
|
|
}
|