fix(home): 优化短剧列表下拉刷新体验
This commit is contained in:
1 parent
f69a27bb80
commit
7945f3ffed
8 files changed
+247
-201
No files matched your search
@@ -46,7 +46,7 @@ class _RecommendPageState extends State<RecommendPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
final categories = context.watch<CategoryController>();
|
||||
final categories = context.read<CategoryController>();
|
||||
return ColoredBox(
|
||||
key: const Key('recommend-page'),
|
||||
color: AppColors.appBackground,
|
||||
@@ -59,7 +59,10 @@ class _RecommendPageState extends State<RecommendPage> {
|
||||
child: IndexedStack(
|
||||
index: _tab.index,
|
||||
children: [
|
||||
_recommendFeed(context),
|
||||
ListenableBuilder(
|
||||
listenable: widget.feedController,
|
||||
builder: (context, _) => _recommendFeed(context),
|
||||
),
|
||||
RecommendSectionsView(
|
||||
feedController: widget.feedController,
|
||||
categories: categories,
|
||||
|
||||
Reference in new issue
Block a user