👔 Disable pin reply

This commit is contained in:
2025-08-25 19:57:30 +08:00
parent c479a9f381
commit a627b5838e

View File

@@ -83,32 +83,32 @@ class PostPinSheet extends HookConsumerWidget {
), ),
// Reply page pin option (show always, but disabled when not available) // Reply page pin option (show always, but disabled when not available)
ListTile( // Disabled for now because im being lazy
leading: Radio<int>( // ListTile(
value: 2, // leading: Radio<int>(
groupValue: mode.value, // value: 2,
onChanged: // groupValue: mode.value,
post.repliedPostId != null && post.repliedPostId!.isNotEmpty // onChanged:
? (value) { // post.repliedPostId != null && post.repliedPostId!.isNotEmpty
mode.value = value!; // ? (value) {
} // mode.value = value!;
: null, // }
), // : null,
title: Text('replyPage'.tr()), // ),
subtitle: // title: Text('replyPage'.tr()),
post.repliedPostId != null && post.repliedPostId!.isNotEmpty // subtitle:
? Text('pinPostReplyHint'.tr()) // post.repliedPostId != null && post.repliedPostId!.isNotEmpty
: Text('pinPostReplyDisabledHint'.tr()), // ? Text('pinPostReplyHint'.tr())
onTap: // : Text('pinPostReplyDisabledHint'.tr()),
post.repliedPostId != null && post.repliedPostId!.isNotEmpty // onTap:
? () { // post.repliedPostId != null && post.repliedPostId!.isNotEmpty
mode.value = 2; // ? () {
} // mode.value = 2;
: null, // }
enabled: // : null,
post.repliedPostId != null && post.repliedPostId!.isNotEmpty, // enabled:
), // post.repliedPostId != null && post.repliedPostId!.isNotEmpty,
// ),
const SizedBox(height: 16), const SizedBox(height: 16),
// Pin button // Pin button