aves_mio1/lib/widgets/viewer/controls/intents.dart
FabioMich66 19a982ede6
Some checks are pending
Quality check / Flutter analysis (push) Waiting to run
Quality check / CodeQL analysis (java-kotlin) (push) Waiting to run
first commit
2026-03-05 15:51:30 +01: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,
});
}