Merge branch 'main' into fix
This commit is contained in:
@ -123,4 +123,15 @@ class DynamicDetailController extends GetxController {
|
||||
Future onLoad() async {
|
||||
queryReplyList(reqType: 'onLoad');
|
||||
}
|
||||
|
||||
Future removeReply(int? rpid, int? frpid) async {
|
||||
// 移除一楼评论
|
||||
if (rpid != null) {
|
||||
replyList.removeWhere((item) {
|
||||
return item.rpid == rpid;
|
||||
});
|
||||
}
|
||||
|
||||
/// TODO 移除二楼评论
|
||||
}
|
||||
}
|
||||
|
@ -111,14 +111,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
||||
int rpid = replyItem.rpid!;
|
||||
Get.to(
|
||||
() => Scaffold(
|
||||
appBar: AppBar(
|
||||
titleSpacing: 0,
|
||||
centerTitle: false,
|
||||
title: Text(
|
||||
'评论详情',
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
),
|
||||
),
|
||||
appBar: AppBar(title: const Text('评论详情')),
|
||||
body: VideoReplyReplyPanel(
|
||||
oid: oid,
|
||||
rpid: rpid,
|
||||
@ -192,10 +185,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
elevation: 0,
|
||||
scrolledUnderElevation: 1,
|
||||
centerTitle: false,
|
||||
titleSpacing: 0,
|
||||
title: StreamBuilder(
|
||||
stream: titleStreamC.stream,
|
||||
initialData: false,
|
||||
@ -335,6 +325,8 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
||||
.replies!
|
||||
.add(replyItem);
|
||||
},
|
||||
onDelete:
|
||||
_dynamicDetailController.removeReply,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -78,8 +78,6 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
super.build(context);
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
elevation: 0,
|
||||
scrolledUnderElevation: 0,
|
||||
title: SizedBox(
|
||||
height: 34,
|
||||
child: Stack(
|
||||
|
Reference in New Issue
Block a user