Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/01_glass_hover/glass_hover_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ class _GlassHoverEffectState extends State<GlassHoverEffect>
child: MouseRegion(
onEnter: (event) => _controller.forward(),
onExit: (event) => _controller.reverse(),
child: ClipRRect(
clipBehavior: Clip.hardEdge,
child: SizedBox(
child: SizedBox(
height: 420,
width: 320,
child: Stack(
Expand All @@ -66,6 +64,7 @@ class _GlassHoverEffectState extends State<GlassHoverEffect>
position: _animation,
child: ClipRRect(
clipBehavior: Clip.hardEdge,
borderRadius: const BorderRadius.all(Radius.circular(25)),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 6, sigmaY: 6),
child: Padding(
Expand Down Expand Up @@ -131,7 +130,6 @@ class _GlassHoverEffectState extends State<GlassHoverEffect>
],
),
),
),
),
),
);
Expand Down