chitochi / flutter_inset_shadow

This package extends BoxShadow and BoxDecoration to support the inset property. [maintainer=@chitochi]

Home Page:https://pub.dev/packages/flutter_inset_shadow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shadows with opacity are not applied

aydinfatih opened this issue · comments

I add opacity to the shadow color but it tints without opacity. Can you help with this issue?


Container(
      width: width,
      height: height,
      padding: padding,
      decoration: BoxDecoration(
        boxShadow: [
          BoxShadow(
            offset: Offset.fromDirection(4, 4) ,
            color: Colors.black.withOpacity(.05),
            blurRadius: 0,
            spreadRadius: 10,
            inset: true,
          ),
        ],
      ),
      child: child,
    )

0c2f6cd9-5c50-4fae-9253-2949a00db6e7

Fixed
#2

Hello ! Thank you very much for this PR, I am merging it immediately.

I just published version 1.0.8 on pub.dev, feel free to upgrade.