Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
7eb643ef
提交
7eb643ef
authored
4月 27, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 补充 AutomaticKeepAliveClientMixin 中缺失的 super.build(context) 调用
7 个页面 override build() 但未调用 super.build(context),可能导致 Tab 保活机制失效、切换时状态丢失
上级
a8ca8362
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
8 行增加
和
1 行删除
+8
-1
content.dart
lib/pages/library/widgets/content.dart
+1
-0
view.dart
lib/pages/pay_coupon/view.dart
+2
-0
view.dart
lib/pages/user_coin_recharge/view.dart
+1
-0
list.dart
lib/pages/user_discuss_des/widgets/list.dart
+1
-0
list.dart
lib/pages/user_notes_des/widgets/list.dart
+1
-0
list.dart
lib/pages/user_order/widgets/list.dart
+1
-0
view.dart
lib/pages/user_order_evaluate/view.dart
+1
-1
没有找到文件。
lib/pages/library/widgets/content.dart
浏览文件 @
7eb643ef
...
...
@@ -16,6 +16,7 @@ class LibraryContentPage extends StatefulWidget {
class
_LibraryContentPageState
extends
State
<
LibraryContentPage
>
with
AutomaticKeepAliveClientMixin
{
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
widget
.
controller
.
books
.
isEmpty
?
Container
(
padding:
EdgeInsets
.
only
(
top:
110
.
w
),
alignment:
Alignment
.
center
,
...
...
lib/pages/pay_coupon/view.dart
浏览文件 @
7eb643ef
...
...
@@ -30,6 +30,7 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
Scaffold
(
appBar:
AppBar
(
centerTitle:
true
,
...
...
@@ -93,6 +94,7 @@ class CouponPage extends StatefulWidget {
class
_CouponPageState
extends
State
<
CouponPage
>
with
AutomaticKeepAliveClientMixin
{
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
GetBuilder
<
PayCouponController
>(
tag:
widget
.
tag
,
init:
PayCouponController
(
widget
.
tag
,
widget
.
payController
),
...
...
lib/pages/user_coin_recharge/view.dart
浏览文件 @
7eb643ef
...
...
@@ -11,6 +11,7 @@ class _CoinRechargePageState extends State<CoinRechargePage>
with
AutomaticKeepAliveClientMixin
{
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
GetBuilder
<
CoinRechargeController
>(
init:
CoinRechargeController
(
context:
context
),
builder:
(
controller
)
=>
Column
(
...
...
lib/pages/user_discuss_des/widgets/list.dart
浏览文件 @
7eb643ef
...
...
@@ -17,6 +17,7 @@ class BuildListPage extends StatefulWidget {
class
_BuildListPageState
extends
State
<
BuildListPage
>
with
AutomaticKeepAliveClientMixin
{
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
GetBuilder
<
UserDiscussDesController
>(
tag:
widget
.
tag
,
init:
UserDiscussDesController
(
widget
.
tag
,
widget
.
model
),
...
...
lib/pages/user_notes_des/widgets/list.dart
浏览文件 @
7eb643ef
...
...
@@ -17,6 +17,7 @@ class BuildListPage extends StatefulWidget {
class
_BuildListPageState
extends
State
<
BuildListPage
>
with
AutomaticKeepAliveClientMixin
{
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
GetBuilder
<
UserNotesDesController
>(
tag:
widget
.
tag
,
init:
UserNotesDesController
(
widget
.
tag
,
widget
.
model
),
...
...
lib/pages/user_order/widgets/list.dart
浏览文件 @
7eb643ef
...
...
@@ -30,6 +30,7 @@ class _BuildListPageState extends State<BuildListPage>
@override
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
return
GetBuilder
<
UserOrderController
>(
tag:
widget
.
tag
.
toString
(),
init:
UserOrderController
(
widget
.
tag
),
...
...
lib/pages/user_order_evaluate/view.dart
浏览文件 @
7eb643ef
...
...
@@ -28,7 +28,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
@override
Widget
build
(
BuildContext
context
)
{
//
super.build(context);
super
.
build
(
context
);
return
GetBuilder
<
UserOrderEvaluateController
>(
init:
UserOrderEvaluateController
(
widget
.
orderNum
),
builder:
(
controller
)
=>
Scaffold
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论