shadow_widget 0.1.0 shadow_widget: ^0.1.0 copied to clipboard
A widget that adds a shadow effect to any Flutter widget.
A widget that adds a shadow effect to any Flutter widget.
This widget in its original form comes from the swift_ui package at Flutter Bounty Hunters.
Usage #
Wrap the widget that you want to add a shadow to with a ShadowedWidget
.
ShadowWidget(
offset: Offset(10, 10),
color: Colors.black.withOpacity(0.5),
blurRadius: 10.0,
child: MyWidget(),
),
Notes:
- The shadow's opacity is independent of the child widget's opacity.
- A
blurRadius
of0.0
is sharp while higher values are more fuzzy.
Further development #
Do you need a bug fixed or a feature added? Or do you need other specialized open-source widgets developed for your project? Hire someone at Flutter Bounty Hunters or reach out to me directly.