From a8e9c9d6d57b07bf38a817547c9dc8393850de9f Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 27 Jun 2022 01:57:58 +0530 Subject: [PATCH] DetailedPage: rebuild on actual change of shouldDisableScroll value --- lib/ui/detail_page.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ui/detail_page.dart b/lib/ui/detail_page.dart index 26cafcf68..57b07345d 100644 --- a/lib/ui/detail_page.dart +++ b/lib/ui/detail_page.dart @@ -141,9 +141,11 @@ class _DetailPageState extends State { autoPlay: !_hasPageChanged, tagPrefix: widget.config.tagPrefix, shouldDisableScroll: (value) { - setState(() { - _shouldDisableScroll = value; - }); + if (_shouldDisableScroll != value) { + setState(() { + _shouldDisableScroll = value; + }); + } }, playbackCallback: (isPlaying) { _shouldHideAppBar = isPlaying;