NeuBox
neu_box is a customizable container widget that allows you to create beautiful neumorphic-style containers in your Flutter apps with flexible shadow, radius, and content support.
Installation
- Add the latest version of package to your pubspec.yaml (and run
dart pub get):
dependencies:
neu_box: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:neu_box/neu_box.dart';
Usage Example
You can customize the appearance of NeuBox by providing the following parameters:
| Property | Type | Description |
|---|---|---|
height |
double |
Height of the container |
width |
double |
Width of the container |
containerColor |
Color |
Background color of the container |
borderRadius |
double? |
Optional corner radius |
image |
ImageProvider? |
Optional background image |
offset1 |
Offset |
First shadow offset |
offsetColor1 |
Color |
Color of the first shadow |
blurRadius1 |
double |
Blur radius of the first shadow |
offset2 |
Offset |
Second shadow offset |
offsetColor2 |
Color |
Color of the second shadow |
blurRadius2 |
double |
Blur radius of the second shadow |
child |
Widget? |
Optional child widget to display inside |
|
|
Next Goals
-
xSupport for dual box shadows -
xCustom blur and offset -
xOptional child widget and border radius -
Add tap interaction support -
Introduce animated variations -
Provide prebuilt neumorphic themes