mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 17:18:13 +08:00
@@ -111,27 +111,23 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () async {
|
||||
controller.keepChatPanel();
|
||||
await PageUtils.imageView(
|
||||
imgList: imageList
|
||||
.map(
|
||||
(img) => switch (img) {
|
||||
FilePicModel e => SourceModel(
|
||||
url: e.path,
|
||||
sourceType: .fileImage,
|
||||
),
|
||||
OpusPicModel e => SourceModel(
|
||||
url: e.url!,
|
||||
sourceType: .networkImage,
|
||||
),
|
||||
},
|
||||
)
|
||||
.toList(),
|
||||
initialPage: index,
|
||||
);
|
||||
controller.restoreChatPanel();
|
||||
},
|
||||
onTap: () => PageUtils.imageView(
|
||||
imgList: imageList
|
||||
.map(
|
||||
(img) => switch (img) {
|
||||
FilePicModel e => SourceModel(
|
||||
url: e.path,
|
||||
sourceType: .fileImage,
|
||||
),
|
||||
OpusPicModel e => SourceModel(
|
||||
url: e.url!,
|
||||
sourceType: .networkImage,
|
||||
),
|
||||
},
|
||||
)
|
||||
.toList(),
|
||||
initialPage: index,
|
||||
),
|
||||
onLongPress: () {
|
||||
Feedback.forLongPress(context);
|
||||
onClear();
|
||||
@@ -328,7 +324,6 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
|
||||
|
||||
late double _mentionOffset = 0;
|
||||
Future<void>? onMention([bool fromClick = false]) async {
|
||||
controller.keepChatPanel();
|
||||
final res = await DynMentionPanel.onDynMention(
|
||||
context,
|
||||
offset: _mentionOffset,
|
||||
@@ -345,7 +340,6 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
|
||||
res.clear();
|
||||
}
|
||||
}
|
||||
controller.restoreChatPanel();
|
||||
}
|
||||
|
||||
void _onInsertUser(MentionItem e, bool fromClick) {
|
||||
|
||||
Reference in New Issue
Block a user