最新修改
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user