2024-05-03 02:27:42 +03:00
2022-08-31 19:03:55 +03:00
2024-05-03 02:27:42 +03:00
2022-08-31 19:03:55 +03:00
2019-05-21 10:30:03 +04:30
2024-05-03 02:13:59 +03:00
2022-08-31 19:00:43 +03:00
2024-05-03 02:13:59 +03:00
2022-08-31 17:13:17 +03:00
2019-05-21 11:08:54 +04:30

Flutter Icon Shadow

Drop a shadow below your icons. Customizable color, blur sigma, and offset.

Forked from icon_shadow package for adding null safety, and more features.

sample

How to use

1. Add dependencies to pubspec.yaml

flutter pub add flutter_icon_shadow

2. Add icons

Simply wrap your icon with IconShadow, which accepts an Icon widget as the first argument.

More arguments are available: Color? shadowColor, double shadowBlurSigma = 0.9, and Offset shadowOffset = Offset.zero.

Row(
  mainAxisAlignment: MainAxisAlignment.center,
  children: <Widget>[
    IconShadow(
      Icon(
        Icons.lightbulb_outline,
        color: Colors.lightBlueAccent,
        size: 36,
      ),
    ),
    IconShadow(
      Icon(
        Icons.lightbulb_outline,
        color: Colors.lightBlueAccent,
        size: 36,
      ),
      shadowColor: Colors.lightBlueAccent.shadow100,
      shadowOffset: Offset(2, 2), // optional, may cause clipping by bounding box
    ),
    IconShadow(
      Icon(
        Icons.lightbulb_outline,
        color: Colors.lightBlueAccent,
        size: 36,
      ),
      showShadow: false,
    ),
  ],
)
Description
icon shadow: add shadow to icon
Readme MIT 412 KiB
Languages
C++ 38.7%
CMake 31.7%
Dart 21.2%
HTML 3%
Swift 2.8%
Other 2.5%