fix(recommend): 修正进度拖动与底栏联动
This commit is contained in:
1 parent
afe7a49ef0
commit
2765343340
9 files changed
+79
-107
No files matched your search
@@ -23,7 +23,6 @@ class HomeLogic extends ChangeNotifier {
|
||||
bool drawerOpen = false;
|
||||
bool detailOpen = false;
|
||||
bool videoImmersive = false;
|
||||
bool scrubHidden = false;
|
||||
bool _dramaNotifyScheduled = false;
|
||||
bool _disposed = false;
|
||||
|
||||
@@ -145,12 +144,6 @@ class HomeLogic extends ChangeNotifier {
|
||||
notify();
|
||||
}
|
||||
|
||||
void onScrubVisibilityChanged(bool value) {
|
||||
if (scrubHidden == value) return;
|
||||
scrubHidden = value;
|
||||
notify();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_disposed = true;
|
||||
|
||||
@@ -239,15 +239,7 @@ class _HomeTabsState extends State<_HomeTabs> {
|
||||
backgroundColor: AppColors.transparent,
|
||||
resizeToAvoidBottomInset: false,
|
||||
body: _body(context),
|
||||
bottomNavigationBar: logic.videoImmersive
|
||||
? null
|
||||
: Visibility(
|
||||
visible: !logic.scrubHidden,
|
||||
maintainSize: true,
|
||||
maintainAnimation: true,
|
||||
maintainState: true,
|
||||
child: _nav(context),
|
||||
),
|
||||
bottomNavigationBar: logic.videoImmersive ? null : _nav(context),
|
||||
),
|
||||
);
|
||||
return AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
@@ -296,7 +288,6 @@ class _HomeTabsState extends State<_HomeTabs> {
|
||||
active: logic.tab == 1,
|
||||
onSearch: () => _openSearch(context),
|
||||
onOpenFilter: () => _pushPage(context, const FilterPage()),
|
||||
onScrubVisibilityChanged: logic.onScrubVisibilityChanged,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user