aves/lib/widgets/viewer/controls/intents.dart
Thibault Deckers b5aaad4df8 refactor
2023-03-28 12:56:39 +02:00

50 lines
965 B
Dart

import 'package:aves_model/aves_model.dart';
import 'package:flutter/widgets.dart';
class ShowPreviousIntent extends Intent {
const ShowPreviousIntent();
}
class ShowNextIntent extends Intent {
const ShowNextIntent();
}
class LeaveIntent extends Intent {
const LeaveIntent();
}
class ShowInfoIntent extends Intent {
const ShowInfoIntent();
}
class TvShowLessInfoIntent extends Intent {
const TvShowLessInfoIntent();
}
class TvShowMoreInfoIntent extends Intent {
const TvShowMoreInfoIntent();
}
class PlayPauseIntent extends Intent {
final TvPlayPauseType type;
const PlayPauseIntent.play() : type = TvPlayPauseType.play;
const PlayPauseIntent.pause() : type = TvPlayPauseType.pause;
const PlayPauseIntent.toggle() : type = TvPlayPauseType.toggle;
}
enum TvPlayPauseType {
play,
pause,
toggle,
}
class EntryActionIntent extends Intent {
final EntryAction action;
const EntryActionIntent({
required this.action,
});
}