DetailedPage: rebuild on actual change of shouldDisableScroll value
This commit is contained in:
parent
041c19137e
commit
a8e9c9d6d5
1 changed files with 5 additions and 3 deletions
|
@ -141,9 +141,11 @@ class _DetailPageState extends State<DetailPage> {
|
|||
autoPlay: !_hasPageChanged,
|
||||
tagPrefix: widget.config.tagPrefix,
|
||||
shouldDisableScroll: (value) {
|
||||
setState(() {
|
||||
_shouldDisableScroll = value;
|
||||
});
|
||||
if (_shouldDisableScroll != value) {
|
||||
setState(() {
|
||||
_shouldDisableScroll = value;
|
||||
});
|
||||
}
|
||||
},
|
||||
playbackCallback: (isPlaying) {
|
||||
_shouldHideAppBar = isPlaying;
|
||||
|
|
Loading…
Add table
Reference in a new issue