Skip to content

Commit 1281598

Browse files
committed
feat: enable hover color on thread card
1 parent 0dd161a commit 1281598

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/widgets/adaptive_ink_response.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ class AdaptiveInkResponse extends StatelessWidget {
3737
this.onHover,
3838
this.mouseCursor,
3939
this.containedInkWell = false,
40-
this.highlightShape = BoxShape.circle,
40+
this.highlightShape = BoxShape.rectangle,
4141
this.radius,
4242
this.borderRadius,
4343
this.customBorder,
4444
this.focusColor,
45-
this.hoverColor = Colors.transparent,
46-
this.highlightColor = Colors.transparent,
45+
this.hoverColor,
46+
this.highlightColor,
4747
this.overlayColor,
4848
this.splashColor,
4949
this.splashFactory,

lib/widgets/card/post_card/post_card.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ class _PostCardState extends State<PostCard> with AutomaticKeepAliveClientMixin
237237
return switch (interactionMode) {
238238
ThreadFloorInteractionMode.adaptiveTapMenu => AdaptiveInkResponse(
239239
splashColor: Colors.transparent,
240+
highlightColor: Colors.transparent,
241+
focusColor: Colors.transparent,
242+
hoverColor: Colors.transparent,
240243
mouseCursor: MouseCursor.uncontrolled,
241244
behavior: HitTestBehavior.opaque,
242245
onAdaptiveContextTap: (tapPosition) async {

0 commit comments

Comments
 (0)