mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 17:55:58 -07:00
fix: Keyboard controls and translations (#79)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7394077726
commit
1babf05834
11 changed files with 796 additions and 745 deletions
|
|
@ -14,6 +14,7 @@ class MediaPlaybackModel {
|
|||
final bool completed;
|
||||
final bool errorPlaying;
|
||||
final bool buffering;
|
||||
final bool fullScreen;
|
||||
MediaPlaybackModel({
|
||||
this.state = VideoPlayerState.disposed,
|
||||
this.playing = false,
|
||||
|
|
@ -24,6 +25,7 @@ class MediaPlaybackModel {
|
|||
this.completed = false,
|
||||
this.errorPlaying = false,
|
||||
this.buffering = false,
|
||||
this.fullScreen = false,
|
||||
});
|
||||
|
||||
MediaPlaybackModel copyWith({
|
||||
|
|
@ -36,6 +38,7 @@ class MediaPlaybackModel {
|
|||
bool? completed,
|
||||
bool? errorPlaying,
|
||||
bool? buffering,
|
||||
bool? fullScreen,
|
||||
}) {
|
||||
return MediaPlaybackModel(
|
||||
state: state ?? this.state,
|
||||
|
|
@ -47,6 +50,7 @@ class MediaPlaybackModel {
|
|||
completed: completed ?? this.completed,
|
||||
errorPlaying: errorPlaying ?? this.errorPlaying,
|
||||
buffering: buffering ?? this.buffering,
|
||||
fullScreen: fullScreen ?? this.fullScreen,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue