mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-08 12:04:50 +08:00
@@ -10,8 +10,6 @@ import 'package:PiliPlus/common/widgets/scaffold.dart';
|
||||
import 'package:PiliPlus/grpc/bilibili/im/type.pb.dart' show Msg;
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/http/msg.dart';
|
||||
import 'package:PiliPlus/models/common/image_type.dart';
|
||||
import 'package:PiliPlus/models/common/publish_panel_type.dart';
|
||||
import 'package:PiliPlus/pages/common/publish/common_rich_text_pub_page.dart';
|
||||
import 'package:PiliPlus/pages/emote/view.dart';
|
||||
import 'package:PiliPlus/pages/whisper_detail/controller.dart';
|
||||
@@ -69,7 +67,7 @@ class _WhisperDetailPageState
|
||||
NetworkImgLayer(
|
||||
width: 34,
|
||||
height: 34,
|
||||
type: ImageType.avatar,
|
||||
type: .avatar,
|
||||
src: _whisperDetailController.face,
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
@@ -283,9 +281,7 @@ class _WhisperDetailPageState
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () => updatePanelType(
|
||||
panelType.value == PanelType.emoji
|
||||
? PanelType.keyboard
|
||||
: PanelType.emoji,
|
||||
panelType.value == .emoji ? .keyboard : .emoji,
|
||||
),
|
||||
icon: const Icon(Icons.emoji_emotions),
|
||||
tooltip: '表情',
|
||||
@@ -295,7 +291,7 @@ class _WhisperDetailPageState
|
||||
onPointerUp: (event) {
|
||||
// Currently it may be emojiPanel.
|
||||
if (readOnly.value) {
|
||||
updatePanelType(PanelType.keyboard);
|
||||
updatePanelType(.keyboard);
|
||||
}
|
||||
},
|
||||
child: Obx(
|
||||
|
||||
@@ -11,9 +11,7 @@ import 'package:PiliPlus/grpc/bilibili/im/interfaces/v1.pb.dart'
|
||||
show EmotionInfo;
|
||||
import 'package:PiliPlus/grpc/bilibili/im/type.pb.dart' show Msg, MsgType;
|
||||
import 'package:PiliPlus/http/search.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/common/image_preview_type.dart';
|
||||
import 'package:PiliPlus/models/common/image_type.dart';
|
||||
import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
import 'package:PiliPlus/utils/date_utils.dart';
|
||||
import 'package:PiliPlus/utils/duration_utils.dart';
|
||||
@@ -449,7 +447,7 @@ class ChatItem extends StatelessWidget {
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
NetworkImgLayer(
|
||||
type: ImageType.emote,
|
||||
type: .emote,
|
||||
width: constrains.maxWidth,
|
||||
height: constrains.maxWidth / Style.aspectRatio16x9,
|
||||
src: content['cover'],
|
||||
@@ -457,7 +455,7 @@ class ChatItem extends StatelessWidget {
|
||||
PBadge(
|
||||
left: 6,
|
||||
bottom: 6,
|
||||
type: PBadgeType.gray,
|
||||
type: .gray,
|
||||
text: content['times'] == 0
|
||||
? '--:--'
|
||||
: DurationUtils.formatDuration(content['times']),
|
||||
@@ -700,7 +698,7 @@ class ChatItem extends StatelessWidget {
|
||||
width: size,
|
||||
height: size,
|
||||
src: emoji['url'],
|
||||
type: ImageType.emote,
|
||||
type: .emote,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user