A Flutter widget that creates an animated folding cell UI component with customizable front and inner content.
FoldingCell is a Flutter widget that creates an animated folding cell UI component. It allows developers to build interactive elements where a front widget folds to reveal an inner widget, providing a compact way to display additional content or details. It solves the need for engaging, space-efficient expandable UI sections in mobile applications.
Flutter developers building mobile applications who need interactive, animated UI components for displaying expandable content, such as in settings panels, detail cards, or list items.
Developers choose FoldingCell for its simplicity and ready-to-use animated folding functionality, eliminating the need to manually implement complex animations. It offers a clean API with full customization, making it easy to integrate into existing Flutter projects.
Flutter FoldingCell widget
Offers configurable animation duration for fold and unfold actions, as demonstrated in the `animationDuration` parameter set to 300 milliseconds in the basic usage example.
Allows developers to pass any Flutter widgets for both front and inner sections, providing complete design freedom, shown in the `_buildFrontWidget` and `_buildInnerWidget` methods.
Can be easily integrated into containers and ListViews, with example demos provided in the README for both use cases.
Includes `onOpen` and `onClose` callbacks to track the folding state, enabling synchronization with app logic.
Only supports basic fold/unfold with configurable duration, lacking options for animation curves, delays, or complex sequences, which may not suffice for advanced UI needs.
Relies on GlobalKey to control the folding state, which can be cumbersome and error-prone in complex widget hierarchies, as seen in the `_foldingCellKey` usage.
The README provides only basic examples without advanced tutorials, troubleshooting, or best practices, potentially hindering adoption for complex scenarios.
Free and open-source chat SDK. Build fast, real-time apps and generative AI agents with a high-performance, customizable, cross-platform UI.
A complete, ready to use, Neumorphic ui kit for Flutter, 🕶️ dark mode compatible
Flutter Smooth PageView indicators
🔁 A custom refresh indicator for flutter.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.