mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-17 14:50:12 +08:00
tweaks (#1142)
* 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:
committed by
GitHub
parent
56ffc2781f
commit
5f8313901b
@@ -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],
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user