Search packages, repositories and app categories

animated_neumorphic cover
Package detailsv0.2.0

animated_neumorphic

A Flutter package that contains Neumorphismic theme Container that animates implicity by change values. Easy to use, just like Flutter's built-in Animated widget.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
100
Likes
23
Pub points
160

Install package

flutter pub add animated_neumorphic

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

AnimatedNeumorphic is a Flutter package that provides a neumorphic-themed container with built-in implicit animations. It allows developers to create soft, depth-rich UI elements that respond dynamically to value changes, mimicking real-world tactile feedback. Designed for simplicity, it integrates seamlessly with Flutter’s animation system—just like the standard Animated widget. Ideal for modern, minimalist interfaces, it enhances user experience through subtle visual transitions without complex code. The package supports all major platforms, making it versatile for cross-platform apps.

Use cases

  • Creating interactive buttons with depth effects
  • Designing dynamic cards with smooth shadow transitions
  • Building responsive UI components with neumorphic styling
  • Enhancing app aesthetics with soft, modern design
  • Implementing touch feedback in form elements
  • Developing consistent UI across Android, iOS, and web

Key features

  • Implicit animation on value changes
  • Neumorphic-themed container design
  • Simple API similar to Flutter's Animated widgets
  • Cross-platform support (Android, iOS, Web, macOS, Windows, Linux)
  • Customizable light/dark shadows and depth
  • Easy integration with existing Flutter projects

Suitable for

  • UI designers seeking modern neumorphic effects
  • Developers building visually rich cross-platform apps
  • Teams focused on polished, tactile user experiences
  • Beginners exploring advanced Flutter animations
  • Apps requiring subtle, engaging interactions

Considerations

  • May impact performance on low-end devices due to shadow rendering
  • Requires careful color and contrast choices for accessibility
  • Limited customization compared to full custom painting
  • Best suited for lightweight, non-heavy UIs
  • Not ideal for high-performance or gaming applications

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

animated_neumorphic

A Flutter package that contains Neumorphismic theme Container.

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  animated_neumorphic: "^0.1.0"

In your library add the following import:

import 'package:animated_neumorphic/animated_neumorphic.dart';

For help getting started with Flutter, view the online documentation.

Usage

For simple button:

class NeumorphicButton extends StatefulWidget {
  final bool isActive;

  const NeumorphicButton({Key key, this.isActive}) : super(key: key);

  @override
  _NeumorphicButtonState createState() => _NeumorphicButtonState();
}

class _NeumorphicButtonState extends State<NeumorphicButton> {
  bool _isActive = false;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () {
        setState(() {
          _isActive = !_isActive;
        });
      },
      child: AnimatedNeumorphicContainer(
        depth: _isActive ? 0.0 : 1.0,
        color: Color(0xFFF2F2F2),
        width: 60,
        height: 60,
        radius: 16,
        child: Icon(Icons.access_time),
      ),
    );
  }
}

Changelog

Please see the Changelog page to know what's recently changed.

Contributions

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.

Categories

Source repository

Projects using this package

No data available yet.