Skip to content

Instantly share code, notes, and snippets.

@isaacadariku
Created September 26, 2023 14:39
Show Gist options
  • Save isaacadariku/6b3d110436b84e19e69edf965b4135ee to your computer and use it in GitHub Desktop.
Save isaacadariku/6b3d110436b84e19e69edf965b4135ee to your computer and use it in GitHub Desktop.
Snippet for reflection.app mobile bottom nav bar
ClipRRect(
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 2, sigmaY: 2),
child: Container(
height: 88,
alignment: Alignment.topCenter,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
theme.colorScheme.background.withOpacity(0),
theme.colorScheme.background.withOpacity(0),
theme.colorScheme.background.withOpacity(0.3),
],
),
),
child: child,
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment