Skip to content

Commit

Permalink
# bug修复
Browse files Browse the repository at this point in the history
- 修复一处ui显示问题
  • Loading branch information
deretame committed Jan 12, 2025
1 parent 6530b98 commit 6c06fca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 36 deletions.
43 changes: 8 additions & 35 deletions lib/page/user_comments/widgets/comment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ class _CommentsWidgetState extends State<CommentsWidget>
child: Column(
children: [
InkWell(
// behavior: HitTestBehavior.opaque, // 使得所有透明区域也可以响应点击
onTap: () {
AutoRouter.of(context).push(
ComicInfoRoute(
comicId: commentInfo.comic.id,
),
);
},
onLongPress: () async {
var result = await showConfirmationDialog();
debugPrint(result.toString());
Expand Down Expand Up @@ -104,7 +110,7 @@ class _CommentsWidgetState extends State<CommentsWidget>
),
),
Text(
commentInfo.content,
"${commentInfo.content}(${commentInfo.comic.title})",
style: TextStyle(
color: globalSetting.textColor,
),
Expand Down Expand Up @@ -175,39 +181,6 @@ class _CommentsWidgetState extends State<CommentsWidget>
],
),
SizedBox(height: 5),
Row(
children: [
SizedBox(width: 70),
Expanded(
child: GestureDetector(
onTap: () {
AutoRouter.of(context).push(
ComicInfoRoute(
comicId: commentInfo.comic.id,
),
);
},
child: Container(
decoration: BoxDecoration(
color: primaryColor, // 背景颜色
borderRadius:
BorderRadius.circular(5.0), // 圆角
),
child: Padding(
padding: const EdgeInsets.all(5),
child: Flexible(
child: Text(
commentInfo.comic.title,
style: TextStyle(color: primaryTextStyle),
),
),
),
),
),
),
],
),
SizedBox(height: 5),
Center(
child: Row(
children: [
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: zephyr
description: "使用Flutter开发的三方哔咔应用。"
version: 1.20.0+58
version: 1.20.1+59

environment:
sdk: ">=3.0.0"
Expand Down

0 comments on commit 6c06fca

Please sign in to comment.