Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Add LitBoxShadows
Browse files Browse the repository at this point in the history
  • Loading branch information
eightgran committed Jul 15, 2021
1 parent 7fc4fd8 commit 9f6a74e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions lib/src/styles/lit_box_shadows.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';

/// A collection of [BoxShadow] objects that can be used as decoration.
class LitBoxShadows {
/// A [BoxShadow] that can be applied on smaller elements.
static const List<BoxShadow> sm = const [
const BoxShadow(
offset: Offset(-2.0, 2.0),
blurRadius: 4.0,
color: Colors.black26,
spreadRadius: -1.0,
)
];

/// A [BoxShadow] that can be applied on medium-sized elements.
static const List<BoxShadow> md = const [
const BoxShadow(
offset: Offset(-3.0, 3.0),
blurRadius: 4.0,
color: Colors.black38,
spreadRadius: -2.0,
)
];

/// A [BoxShadow] that can be applied on larger elements.
static const List<BoxShadow> lg = const [
const BoxShadow(
offset: Offset(-4, 4),
blurRadius: 6.0,
color: Colors.black38,
spreadRadius: -2.0,
)
];
}
1 change: 1 addition & 0 deletions lib/styles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export 'src/styles/lit_colors.dart';
export 'src/styles/lit_text_styles.dart';
export 'src/styles/lit_sans_serif_styles.dart';
export 'src/styles/lit_serif_styles.dart';
export 'src/styles/lit_box_shadows.dart';

0 comments on commit 9f6a74e

Please sign in to comment.