shadow_overlay
用于美化您的图像或小部件的包。它会叠加您提供的背景颜色,使图像或小部件看起来像透明(以渐变风格)。
afzl-wtu/shadow_overlay open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
A Flutter Package to show a Gradient Shadow on your Images or Widgets.
The package is straight Forward. It puts shadow (Default White) on your Image or Widget. Which makes it beautiful and fuses your image or widget with background.

There is no any requirement. Package is entirely written in dart. It can run on any platform.
ShadowOverlay(
child: Image.asset(
'path to your image',
height: 400,
width:800,
),
shadowWidth: 800,
shadowHeight: 150,
);
Documentaion is also provided within the code you can search more options just hovering over your mouse at properties of ShadowOverlay object.
Gradient Transparency , Transparent Gradient , Transparent Image , Image Transparency , Transparent Widget , Transparent overlay , Transparency overlay Transparent Shadow, Gradient Shadow , Gradual Transparency , Color overlay over image, transparency effect over image
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗