初始化
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgdj/hj_utils/screen.dart';
|
||||
import 'package:hgdj/tools_base/widget/sheet_handle_bar.dart';
|
||||
|
||||
import 'comment_views.dart';
|
||||
|
||||
Future showCommentDialog(
|
||||
String objId, {
|
||||
String objType = "video",
|
||||
int? commentCount,
|
||||
}) 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),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
elevation: 0.72,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user