opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'package:PiliPlus/http/loading_state.dart';

View File

@@ -123,9 +123,7 @@ class _WhisperDetailPageState
Loading() => loadingWidget,
Success() => loadingState.response?.isNotEmpty == true
? refreshIndicator(
onRefresh: () async {
await _whisperDetailController.onRefresh();
},
onRefresh: _whisperDetailController.onRefresh,
child: ListView.builder(
shrinkWrap: true,
reverse: true,
@@ -207,7 +205,7 @@ class _WhisperDetailPageState
crossAxisAlignment: CrossAxisAlignment.end,
children: [
IconButton(
onPressed: () async {
onPressed: () {
updatePanelType(
PanelType.emoji == currentPanelType
? PanelType.keyboard

View File

@@ -435,7 +435,7 @@ class ChatItem extends StatelessWidget {
));
case MsgType.articleCard:
return GestureDetector(
onTap: () async {
onTap: () {
Get.toNamed(
'/articlePage',
parameters: {