Files
谢宇宁andClaude Opus 5.5 2d26ea8f90 Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:38:11 +07:00

53 lines
1.5 KiB
Dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:hjsq/hj_model/video_model.dart';
import 'package:hjsq/hj_utils/screen.dart';
import 'package:hjsq/tools_base/widget/sheet_handle_bar.dart';
import 'comment_views.dart';
Future showCommentDialog(
String objId, {
String objType = "video",
int? commentCount,
VideoModel? videoModel,
}) async {
return Get.bottomSheet(
Container(
alignment: Alignment.topLeft,
height: screen.screenHeight * 0.72,
decoration: BoxDecoration(
color: Color(0xff141414),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20),
),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
alignment: Alignment.center,
padding: EdgeInsets.only(top: 12, bottom: 12),
child: const SheetHandleBar(color: Color(0x1AFFFFFF)),
),
Padding(
padding: const EdgeInsets.only(left: 16, bottom: 16),
child: Text(
"${commentCount ?? 0}条评论",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w400,
fontSize: 14),
),
),
Expanded(
child: CommentView(objId, objType: objType, videoModel: videoModel),
),
],
),
),
elevation: 0.72,
);
}