shadow_widget 0.1.1 copy "shadow_widget: ^0.1.1" to clipboard
shadow_widget: ^0.1.1 copied to clipboard

A widget that adds a shadow effect to any Flutter widget. Supports all platforms.

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 of 0.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.

18
likes
160
points
1.92k
downloads
screenshot

Documentation

API reference

Publisher

verified publishersuragch.dev

Weekly Downloads

A widget that adds a shadow effect to any Flutter widget. Supports all platforms.

Repository (GitHub)
View/report issues

Topics

#widget #shadow

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on shadow_widget