Skip to content

amrmhassan/advanced_shadows

Repository files navigation

This package will let you to add inner and outer shadows for the same widget.

Features

  1. Add inner shadows
  2. Add out shadows
  3. Just wrap your widget with AdvancedShadow and Voilà

Getting started

Add the following to your pubspec.yaml file.

dependencies:
  advanced_shadows: 0.0.1

Usage

Wrap any widget with AdvancedShadow widget. provide shadows!

AdvancedShadow(
  innerShadows: [
    BoxShadow(
      color:Colors.grey.withOpacity(.3),
      blurRadius:20,
    ),
  ],
  outerShadows: [
    BoxShadow(
      color:Colors.grey.withOpacity(.3),
      blurRadius: 20,
    ),
  ],
  child: Container(
    width: 100,
    height: 100,
    decoration: BoxDecoration(
      color: colorTheme.backGround,
      borderRadius: BorderRadius.circular(1000),
    ),
  ),
),

Additional information

You can also use individual InnerShadow widget.
Just wrap with InnerShadow

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published