Skip to content

Commit

Permalink
feat: add splash tile on field of studies (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolaj-jalocha authored Aug 27, 2024
1 parent f6f2bc3 commit c991632
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions lib/widgets/wide_tile_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,36 @@ class WideTileCard extends StatelessWidget {
final List<BoxShadow>? activeShadows;
final LinearGradient? activeGradient;
final CrossAxisAlignment crossAxisAlignment;

@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap,
child: Container(
decoration: BoxDecoration(
gradient: isActive ? activeGradient : null,
color: context.colorTheme.greyLight,
return ClipRRect(
child: Material(
child: InkWell(
borderRadius: const BorderRadius.all(WideTileCardConfig.radius),
boxShadow: isActive ? activeShadows : null,
),
clipBehavior: Clip.antiAlias,
child: Row(
crossAxisAlignment: crossAxisAlignment,
children: [
Expanded(
child: _TitlesColumn(
title,
subtitle,
secondSubtitle,
isActive: isActive,
),
onTap: onTap,
child: Ink(
decoration: BoxDecoration(
gradient: isActive ? activeGradient : null,
color: context.colorTheme.greyLight,
borderRadius: const BorderRadius.all(WideTileCardConfig.radius),
boxShadow: isActive ? activeShadows : null,
),
if (trailing != null) trailing!,
],
child: Row(
crossAxisAlignment: crossAxisAlignment,
children: [
Expanded(
child: _TitlesColumn(
title,
subtitle,
secondSubtitle,
isActive: isActive,
),
),
if (trailing != null) trailing!,
],
),
),
),
),
);
Expand Down

0 comments on commit c991632

Please sign in to comment.