Skip to content

Instantly share code, notes, and snippets.

View isaacadariku's full-sized avatar
👨‍💻
Focusing

Eternity (Isaac Adariku) isaacadariku

👨‍💻
Focusing
View GitHub Profile
@isaacadariku
isaacadariku / color_util.dart
Created September 26, 2023 14:33
Snippet of the color changes in reflection.app guide cards
const double minLightness = 0.30;
const double maxLightness = 0.55;
const double lightnessRange = maxLightness - minLightness;
const int numberOfColors = 3;
/// The top card gradients logic
///
/// Generate a list of gradient colors based on the provided [originalColor].
/// This function generates three gradient colors by adjusting the lightness of the [originalColor].
List<Color> generateGradientColors(Color originalColor) {
@isaacadariku
isaacadariku / bottom_nav_bar.dart
Created September 26, 2023 14:39
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,
@isaacadariku
isaacadariku / adapative_navigation.dart
Created September 26, 2023 14:42
A snippet of the adaptive navigation Layout for Reflection.app
LayoutBuilder(
builder: (context, dimension) {
final isExtended = dimension.maxWidth >= 800;
final optionalFAB = Offstage(
offstage: !showFAB,
child: HomeFAB(
isExtended: isExtended,
fabWidth: isExtended ? 188 : 60,
fabHeight: 60,
),