Skip to content

Commit

Permalink
[fix]修复纯链接类回帖无法被回复(多加了个入口
Browse files Browse the repository at this point in the history
  • Loading branch information
hxphieno committed Mar 14, 2024
1 parent ee1dad9 commit 2cb0325
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion lib/feedback/view/components/normal_comment_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,28 @@ class _NCommentCardState extends State<NCommentCard>
.sp(16),
),
),

CupertinoActionSheetAction(
onPressed: (){
Navigator.pop(context);
if (Provider.of<NewFloorProvider>(context, listen: false)
.inputFieldEnabled) {
context.read<NewFloorProvider>().clearAndClose();
} else {
Provider.of<NewFloorProvider>(context, listen: false)
.inputFieldOpenAndReplyTo(widget.comment.id);
//TODO:自动弹出键盘会无法获取焦点(?
// FocusScope.of(context).requestFocus(
// Provider.of<NewFloorProvider>(context, listen: false)
// .focusNode);
}
},
child: Text(
'回复',
style: TextUtil.base.normal.w400.NotoSansSC
.primary(context)
.sp(16),
),
),
CupertinoActionSheetAction(
onPressed: () {
ClipboardData data =
Expand Down

0 comments on commit 2cb0325

Please sign in to comment.