Flutter Neumorphism Ultra

Pub Version

Flutter Neumorphism Ultra is a modern and customizable Flutter package designed for creating neumorphic UI components such as containers, buttons, grids, and lists with ease.

Features

  • Neumorphic containers with shadow effects.
  • Neumorphic buttons and icon buttons.
  • Support for grid views and list views with neumorphic styling.
  • Highly customizable components for diverse design requirements.

| | | | | |

Installation

Add the package to your pubspec.yaml file:

dependencies:
  flutter_neumorphism_ultra: ^0.0.4

Then, run:

flutter pub get

Usage

  • Import the package
import 'package:flutter_neumorphism_ultra/flutter_neumorphism_ultra.dart';

Examples

NeuContainer

NeuContainer(
  height: 100,
  width: 100,
  child: Center(
    child: Text("Hello"),
  ),
);

NeuButton

NeuButton(
  onPressed: () => print("Button Pressed"),
  child: Text("Click Me"),
);

NeuIconButton

NeuIconButton(
  icon: Icons.favorite,
  onPressed: () => print("Icon Button Pressed"),
);

NeuGridView

NeuGridView(
  crossAxisCount: 2,
  itemCount: 4,
  itemBuilder: (context, index) {
    return NeuContainer(
      child: Center(
        child: Text("Item $index"),
      ),
    );
  },
);

NeuListView

NeuListView(
  itemCount: 10,
  itemBuilder: (context, index) {
    return NeuContainer(
      child: ListTile(
        title: Text("List Item $index"),
      ),
    );
  },
);

Customization

  • All components are highly customizable with parameters for color, shadows, border radius, padding, and margins.

License

  • This package is licensed under the MIT License.

Contact

Example

See the complete example in the example directory for a full implementation.

Contributing

Contributions are welcome! Please open an issue or submit a pull request with any improvements or bug fixes.

GitHub

For more details, visit the GitHub repository

Copyright (c) 2024 Developer Ritesh