mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
revert: reply item bg
This commit is contained in:
@@ -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),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user