[mob][photos] Chore

This commit is contained in:
ashilkn
2024-08-30 19:59:05 +05:30
parent cb83f3592b
commit e4149fa55e
2 changed files with 13 additions and 13 deletions

View File

@@ -336,7 +336,7 @@ class FileAppBarState extends State<FileAppBar> {
shouldLoopVideo
? const SizedBox.shrink()
: Transform.rotate(
angle: (3.14 / 4) * 1,
angle: 3.14 / 4,
child: Container(
width: 2,
height: 24,

View File

@@ -20,18 +20,6 @@ class _PlayPauseButtonState extends State<PlayPauseButton> {
.addListener(_onPlaybackStatusChanged);
}
_onPlaybackStatusChanged() {
if (_playbackStatus == PlaybackStatus.playing) {
setState(() {
_isPlaying = true;
});
} else {
setState(() {
_isPlaying = false;
});
}
}
@override
void dispose() {
widget.controller?.onPlaybackStatusChanged
@@ -88,4 +76,16 @@ class _PlayPauseButtonState extends State<PlayPauseButton> {
PlaybackStatus? get _playbackStatus =>
widget.controller?.playbackInfo?.status;
void _onPlaybackStatusChanged() {
if (_playbackStatus == PlaybackStatus.playing) {
setState(() {
_isPlaying = true;
});
} else {
setState(() {
_isPlaying = false;
});
}
}
}