diff --git a/lib/src/styles/lit_box_shadows.dart b/lib/src/styles/lit_box_shadows.dart new file mode 100644 index 0000000..7b2a2f1 --- /dev/null +++ b/lib/src/styles/lit_box_shadows.dart @@ -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 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 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 lg = const [ + const BoxShadow( + offset: Offset(-4, 4), + blurRadius: 6.0, + color: Colors.black38, + spreadRadius: -2.0, + ) + ]; +} diff --git a/lib/styles.dart b/lib/styles.dart index 103e12f..075016d 100644 --- a/lib/styles.dart +++ b/lib/styles.dart @@ -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';