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

A customizable Flutter widget that adds subtle inner shadow effect to containers.

InnerShadowContainer ๐Ÿชž

A customizable Flutter widget that adds a subtle and flexible inner shadow effect to containers โ€” perfect for neumorphism and modern UI design.


โœจ Features

  • ๐Ÿ”น Inner shadow from any direction
  • ๐Ÿ”น Customizable blur, offset, radius, and color
  • ๐Ÿ”น Lightweight and dependency-free
  • ๐Ÿ”น Fully customizable and reusable widget
  • ๐Ÿ”น Suitable for neumorphic-style UIs

๐Ÿš€ Installation

Add the following to your pubspec.yaml file:

dependencies:
  inner_shadow_container: ^1.0.0

Then run:

flutter pub get

๐Ÿ”ง Usage

import 'package:inner_shadow_container/inner_shadow_container.dart';

InnerShadowContainer(
  height: 120,
  width: 120,
  backgroundColor: Colors.white,
  borderRadius: 20,
  isShadowTopLeft: true,
  isShadowBottomRight: true,
  child: Center(
    child: Icon(Icons.star, size: 40, color: Colors.orange),
  ),
);

๐Ÿ“ Parameters

Parameter Type Default Description
height double? null Height of the container
width double? null Width of the container
borderRadius double 12.0 Border radius of the container
backgroundColor Color Colors.white Background color of the container
isShadowTopLeft bool false Apply inner shadow on top-left side
isShadowTopRight bool false Apply inner shadow on top-right side
isShadowBottomRight bool false Apply inner shadow on bottom-right side
isShadowBottomLeft bool false Apply inner shadow on bottom-left side
child Widget? null Optional child widget inside the container
alignment Alignment Alignment.center Alignment of the child inside the container

๐Ÿงช Example App

InnerShadowContainer(
  height: 120,
  width: 120,
  backgroundColor: Colors.white,
  borderRadius: 20,
  isShadowTopLeft: true,
  isShadowBottomRight: true,
  child: Icon(Icons.favorite, color: Colors.red, size: 40),
);

๐Ÿ’ก Tip

You can combine multiple sides for richer depth:

isShadowTopLeft: true,
isShadowBottomRight: true,

It works well with soft UI themes like neumorphism.


๐Ÿ“„ License

This project is licensed under the MIT License ยฉ 2025 Karan Padaliya


๐Ÿ™Œ Contributions

Pull requests are welcome! For major changes, please open an issue first to discuss what you'd like to change.

Made with โค๏ธ in Flutter.

7
likes
0
points
438
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter widget that adds subtle inner shadow effect to containers.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on inner_shadow_container