karvulf / flutter-reorderable-grid-view

BSD 3-Clause "New" or "Revised" License
158 stars 23 forks source link

Making boxShadow customisable #10

Closed WD-J closed 3 years ago

WD-J commented 3 years ago

Hi - great package you've made! Would greatly appreciate the ability to customise the boxShadow. I have circular items with a square shadow. Wanting to change the color is also another use-case.

karvulf commented 3 years ago

Hello @WD-J Thank you for your request. I will implement this usecase for you this evening und publish it.

WD-J commented 3 years ago

Amazing response time. I greatly appreciate it. Thank you, @karvulf !

karvulf commented 3 years ago

I added a new parameter called dragChildBoxDecoration The default value for the BoxDecoration is

BoxDecoration(
    boxShadow: <BoxShadow>[
      BoxShadow(
        color: Colors.black.withOpacity(0.2),
        spreadRadius: 5,
        blurRadius: 6,
        offset: const Offset(0, 3), // changes position of shadow
      ),
    ],
  );

You can override that with your preferred BoxDecoration, just add the shape BoxShape.circle, your color and update the shadow if you want. :)

You can get the update with Version 1.1.3. @WD-J

WD-J commented 3 years ago

Amazing. Thank you so much! @karvulf