Skip to content

Commit

Permalink
Remove outline on hover for rated cards
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuntu committed Oct 15, 2024
1 parent 7597a60 commit f0e098e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/app_center/lib/widgets/small_banner.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:yaru/yaru.dart';

/// Slimmer version (no border or description) of the [YaruBanner].
class SmallBanner extends StatelessWidget {
const SmallBanner({required this.child, super.key, this.onTap});

Expand All @@ -11,18 +12,16 @@ class SmallBanner extends StatelessWidget {
Widget build(BuildContext context) {
final theme = Theme.of(context);
final borderRadius = BorderRadius.circular(kYaruBannerRadius);

final light = theme.brightness == Brightness.light;

final defaultSurfaceTintColor =
light ? theme.cardColor : const Color.fromARGB(255, 126, 126, 126);

return Material(
color: Colors.transparent,
borderRadius: borderRadius,
child: InkWell(
onTap: onTap,
borderRadius: borderRadius,
hoverColor: theme.colorScheme.onSurface.withOpacity(0.1),
hoverColor: Colors.transparent,
child: Card(
color: theme.cardColor,
shadowColor: Colors.transparent,
Expand Down

0 comments on commit f0e098e

Please sign in to comment.