[mob][photos] Chore
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user