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

A customizable Flutter widget to add soft, neumorphic-style inner shadows to containers and UI components.

InnerShadowContainer ๐Ÿชž

InnerShadowContainer is a highly customizable Flutter widget that adds beautiful and soft inner shadows to any container, ideal for neumorphic UI and modern soft design styles. Perfect for developers building elegant UIs in Flutter using subtle depth effects.

Use it to bring neumorphism, container shadows, and soft UI designs to life in your app with zero dependencies.


โœจ Features

  • โœ… Inner shadow on any side: top-left, top-right, bottom-right, bottom-left
  • โœ… Fully customizable blur, offset, radius, and shadow color
  • โœ… Lightweight, dependency-free and pure Flutter implementation
  • โœ… Supports circular, rounded, or rectangular containers
  • โœ… Perfect for neumorphic and soft UI designs

๐Ÿš€ Installation

Add this to your pubspec.yaml file:

dependencies:
  inner_shadow_container: ^1.0.2

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
heightdouble?nullHeight of the container
widthdouble?nullWidth of the container
borderRadiusdouble12.0Border radius of the container
backgroundColorColorColors.whiteBackground color of the container
isShadowTopLeftboolfalseApply inner shadow on top-left side
isShadowTopRightboolfalseApply inner shadow on top-right side
isShadowBottomRightboolfalseApply inner shadow on bottom-right side
isShadowBottomLeftboolfalseApply inner shadow on bottom-left side
childWidget?nullOptional child inside the container
alignmentAlignmentAlignment.centerChild alignment

๐Ÿงช 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),
);

๐Ÿ’ก Pro Tip

You can combine multiple shadows for enhanced depth:

isShadowTopLeft: true,
isShadowTopRight: true,
isShadowBottomLeft: true,
isShadowBottomRight: true,

This gives a full immersive neumorphic feel to your containers.


๐Ÿ“„ License

Licensed under the MIT License ยฉ 2025 Karan Padaliya


๐Ÿ™Œ Contributions

Pull requests and stars are welcome! If you use this in your project, give it a โญ๏ธ on GitHub.

Made with โค๏ธ in Flutter โ€” Powered by creativity and clean UI!

7
likes
0
points
438
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter widget to add soft, neumorphic-style inner shadows to containers and UI components.

Repository (GitHub)
View/report issues

Topics

#flutter-ui #container #shadow #inner-shadow #neumorphism

License

unknown (license)

Dependencies

flutter

More

Packages that depend on inner_shadow_container