mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-13 04:40:13 +08:00
opt: more linter (#1765)
* opt: more linter * fix [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
3787f99d35
commit
773bdafec3
@@ -1719,7 +1719,7 @@ class VideoDetailController extends GetxController
|
||||
}
|
||||
|
||||
// interactive video
|
||||
if (isStein != true) {
|
||||
if (!isStein) {
|
||||
graphVersion = null;
|
||||
}
|
||||
steinEdgeInfo = null;
|
||||
|
||||
@@ -581,7 +581,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
(e) =>
|
||||
e.cid ==
|
||||
(skipPart
|
||||
? videoDetail.isPageReversed == true
|
||||
? videoDetail.isPageReversed
|
||||
? videoDetail.pages!.last.cid
|
||||
: videoDetail.pages!.first.cid
|
||||
: this.cid.value),
|
||||
@@ -663,7 +663,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
(e) =>
|
||||
e.cid ==
|
||||
(skipPart
|
||||
? videoDetail.isPageReversed == true
|
||||
? videoDetail.isPageReversed
|
||||
? videoDetail.pages!.last.cid
|
||||
: videoDetail.pages!.first.cid
|
||||
: this.cid.value),
|
||||
|
||||
@@ -714,7 +714,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
spanChildren.add(
|
||||
WidgetSpan(
|
||||
child: NetworkImgLayer(
|
||||
src: emote.hasGifUrl() == true ? emote.gifUrl : emote.url,
|
||||
src: emote.hasGifUrl() ? emote.gifUrl : emote.url,
|
||||
type: ImageType.emote,
|
||||
width: size,
|
||||
height: size,
|
||||
|
||||
@@ -15,7 +15,7 @@ class ReplySearchChildController
|
||||
|
||||
@override
|
||||
List<SearchItem>? getDataList(SearchItemReply response) {
|
||||
if (response.cursor.hasNext == false) {
|
||||
if (!response.cursor.hasNext) {
|
||||
isEnd = true;
|
||||
}
|
||||
return response.items;
|
||||
|
||||
@@ -63,9 +63,9 @@ class _ReplySearchPageState extends State<ReplySearchPage> {
|
||||
children: [
|
||||
TabBar(
|
||||
controller: _controller.tabController,
|
||||
tabs: [
|
||||
const Tab(text: '视频'),
|
||||
const Tab(text: '专栏'),
|
||||
tabs: const [
|
||||
Tab(text: '视频'),
|
||||
Tab(text: '专栏'),
|
||||
],
|
||||
onTap: (index) {
|
||||
if (!_controller.tabController.indexIsChanging) {
|
||||
|
||||
Reference in New Issue
Block a user