* opt: unused layout

* mod: semantics

* opt: DanmakuMsg type

* opt: avoid cast

* opt: unnecessary_lambdas

* opt: use isEven

* opt: logger

* opt: invalid common page

* tweak

* opt: unify DynController
This commit is contained in:
My-Responsitories
2025-08-27 12:01:53 +08:00
committed by GitHub
parent 56ffc2781f
commit 5f8313901b
83 changed files with 551 additions and 545 deletions

View File

@@ -259,7 +259,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage>
Obx(
() => Row(
children: List.generate(5, (index) {
if (index % 2 == 0) {
if (index.isEven) {
return _buildChildInfo(
theme: theme,
title: const ['粉丝', '关注', '获赞'][index ~/ 2],

View File

@@ -262,7 +262,7 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
List<num> split = res
.split(':')
.reversed
.map((e) => num.parse(e))
.map(num.parse)
.toList();
double duration = 0;
for (int i = 0; i < split.length; i++) {