This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eightgran
committed
Jul 15, 2021
1 parent
7fc4fd8
commit 9f6a74e
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters