advanced_shadows 0.0.1
advanced_shadows: ^0.0.1 copied to clipboard
This package will let you to add inner and outer shadows for the same widget.
This package will let you to add inner and outer shadows for the same widget.
Features #
- Add inner shadows
- Add out shadows
- Just wrap your widget with AdvancedShadow and Voilà
Getting started #
Add the following to your pubspec.yaml file.
dependencies:
advanced_shadows: 0.0.1
Usage #
Wrap any widget with AdvancedShadow widget. provide shadows!
AdvancedShadow(
innerShadows: [
BoxShadow(
color:Colors.grey.withOpacity(.3),
blurRadius:20,
),
],
outerShadows: [
BoxShadow(
color:Colors.grey.withOpacity(.3),
blurRadius: 20,
),
],
child: Container(
width: 100,
height: 100,
decoration: BoxDecoration(
color: colorTheme.backGround,
borderRadius: BorderRadius.circular(1000),
),
),
),
Additional information #
You can also use individual InnerShadow widget.
Just wrap with InnerShadow