最新修改

This commit is contained in:
谢宇宁
2026-09-16 15:08:13 +07:00
parent d6c95e16eb
commit 123a887914
2 changed files with 41 additions and 55 deletions
@@ -97,13 +97,12 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
},
child: Obx(
() {
//非暗网风格也要读一次:Obx 读不到可观察变量会抛 improper use of a GetX
final isInTop = logic.isSortMenuInTop.value;
Color? bgColor;
if (widget.isDarkStyle) {
if (logic.isSortMenuInTop.value) {
bgColor = Colors.transparent;
} else {
bgColor = Colors.black;
}
bgColor =
isInTop ? Colors.transparent : Colors.black;
}
return HomeSortHeader(
isLatest: logic.isNewestStyle,