This package will let you to add inner and outer shadows for the same widget.
- Add inner shadows
- Add out shadows
- Just wrap your widget with AdvancedShadow and Voilà
Add the following to your pubspec.yaml file.
dependencies:
advanced_shadows: 0.0.1
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),
),
),
),
You can also use individual InnerShadow widget.
Just wrap with InnerShadow