According to the github issue there is no inset attribute in ShadowBox yet. Is there any workaround how to emulate inner shadow right now in flutter.
I like to achieve inner shadow effects like you can see on the following images
Your inner shadow is composed of parts of you that you subconsciously reject. The psychologist Carl Jung popularized the idea of the shadow self, or inner shadow. He defined the collective unconscious with eight different Jungian archetypes: Self: The center of the personality or psyche — your conscious awareness.
BoxShadow is a built-in widget in flutter, whose functionality is to cast shadow to a box. The BoxShadow widget is usually used with BoxDecoration. In BoxDecoration widget one of its parameters is boxShadow which takes a list of BoxShadow to cast a shadow around a box.
decoration: BoxDecoration( boxShadow: [ const BoxShadow( color: your_shadow_color, ), const BoxShadow( color: your_bg_color, spreadRadius: -12.0, blurRadius: 12.0, ), ], ),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With