decorated_icon 1.0.0 copy "decorated_icon: ^1.0.0" to clipboard
decorated_icon: ^1.0.0 copied to clipboard

outdated

An icon that supports shadow decorations.

Deocared Icon #

An Icon that supports shadow decorations.

snapshot

Usage #

To use this plugin, add decorated_icon as a dependency in your pubspec.yaml file.

Example #

Import the library.

import 'package:decorated_icon/decorated_icon.dart';

Then use DecoratedIcon as you would any other widget:

Scaffold(
  body: Center(
    child: Row(
      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
      children: [
        DecoratedIcon(
          Icons.android,
          color: Colors.purple,
          size: 60.0,
          shadows: [
            BoxShadow(
              blurRadius: 42.0,
              color: Colors.purpleAccent,
            ),
            BoxShadow(
              blurRadius: 12.0,
              color: Colors.white,
            ),
          ],
        ),
        DecoratedIcon(
          Icons.favorite,
          color: Colors.lightBlue.shade50,
          size: 60.0,
          shadows: [
            BoxShadow(
              blurRadius: 12.0,
              color: Colors.blue,
            ),
            BoxShadow(
              blurRadius: 12.0,
              color: Colors.green,
              offset: Offset(0, 6.0),
              spreadRadius: 60.0,
            ),
          ],
        ),
        DecoratedIcon(
          Icons.fingerprint,
          color: Colors.orange,
          size: 60.0,
          shadows: [
            BoxShadow(
              color: Colors.black,
              offset: Offset(3.0, 3.0),
            ),
          ],
        ),
      ],
    ),
  ),
);
77
likes
0
pub points
92%
popularity

Publisher

verified publisherbenpesso.com

An icon that supports shadow decorations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on decorated_icon