mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
feat: msg link setting
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -19,10 +19,10 @@ import 'package:get/get.dart';
|
||||
class WhisperDetailController extends CommonListController<RspSessionMsg, Msg> {
|
||||
late final ownerMid = Accounts.main.mid;
|
||||
|
||||
late int talkerId;
|
||||
late String name;
|
||||
late String face;
|
||||
int? mid;
|
||||
final int talkerId = Get.arguments['talkerId'];
|
||||
final String name = Get.arguments['name'];
|
||||
final String face = Get.arguments['face'];
|
||||
final int? mid = Get.arguments['mid'];
|
||||
|
||||
Int64? msgSeqno;
|
||||
|
||||
@@ -32,14 +32,6 @@ class WhisperDetailController extends CommonListController<RspSessionMsg, Msg> {
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
|
||||
talkerId = int.parse(Get.parameters['talkerId']!);
|
||||
name = Get.parameters['name']!;
|
||||
face = Get.parameters['face']!;
|
||||
mid = Get.parameters['mid'] != null
|
||||
? int.parse(Get.parameters['mid']!)
|
||||
: null;
|
||||
|
||||
queryData();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import 'package:PiliPlus/pages/common/common_publish_page.dart';
|
||||
import 'package:PiliPlus/pages/emote/view.dart';
|
||||
import 'package:PiliPlus/pages/whisper_detail/controller.dart';
|
||||
import 'package:PiliPlus/pages/whisper_detail/widget/chat_item.dart';
|
||||
import 'package:PiliPlus/pages/whisper_link_setting/view.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/feed_back.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
@@ -95,6 +96,21 @@ class _WhisperDetailPageState
|
||||
],
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
Get.to(WhisperLinkSettingPage(
|
||||
talkerUid: _whisperDetailController.talkerId,
|
||||
));
|
||||
},
|
||||
icon: Icon(
|
||||
size: 20,
|
||||
Icons.settings,
|
||||
color: theme.colorScheme.onSurfaceVariant.withOpacity(0.8),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
|
||||
Reference in New Issue
Block a user