revert: reply item bg

This commit is contained in:
bggRGjQaUbCoE
2024-10-12 18:11:37 +08:00
parent e8207cba5d
commit e060cb1df6

View File

@@ -47,56 +47,59 @@ class ReplyItemGrpc extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return InkWell( return Material(
// 点击整个评论区 评论详情/回复 color: Colors.transparent,
onTap: () { child: InkWell(
feedBack(); // 点击整个评论区 评论详情/回复
if (replyReply != null) { onTap: () {
replyReply!(replyItem, null); feedBack();
} if (replyReply != null) {
}, replyReply!(replyItem, null);
onLongPress: () { }
feedBack(); },
// showDialog( onLongPress: () {
// context: Get.context!, feedBack();
// builder: (_) => AlertDialog( // showDialog(
// content: SelectableText( // context: Get.context!,
// jsonEncode(replyItem.replyControl.toProto3Json())), // builder: (_) => AlertDialog(
// ), // content: SelectableText(
// ); // jsonEncode(replyItem.replyControl.toProto3Json())),
showModalBottomSheet( // ),
context: context, // );
useRootNavigator: true, showModalBottomSheet(
isScrollControlled: true, context: context,
builder: (context) { useRootNavigator: true,
return MorePanel( isScrollControlled: true,
item: replyItem, builder: (context) {
onDelete: (rpid) { return MorePanel(
if (onDelete != null) { item: replyItem,
onDelete!(rpid, null); onDelete: (rpid) {
} if (onDelete != null) {
}, onDelete!(rpid, null);
); }
}, },
); );
}, },
child: Column( );
children: [ },
Padding( child: Column(
padding: const EdgeInsets.fromLTRB(12, 14, 8, 5), children: [
child: content(context), Padding(
), padding: const EdgeInsets.fromLTRB(12, 14, 8, 5),
if (needDivider) child: content(context),
Divider( ),
indent: 55, if (needDivider)
endIndent: 15, Divider(
height: 0.3, indent: 55,
color: Theme.of(context) endIndent: 15,
.colorScheme height: 0.3,
.onInverseSurface color: Theme.of(context)
.withOpacity(0.5), .colorScheme
) .onInverseSurface
], .withOpacity(0.5),
)
],
),
), ),
); );
} }