Overview

HuxCard provides a flexible container component for displaying content with optional headers, titles, and actions.

Basic Usage

HuxCard(
  title: 'Card Title',
  subtitle: 'Optional subtitle',
  child: Text('Card content goes here'),
)

With Actions

HuxCard(
  title: 'Settings',
  action: IconButton(
    icon: Icon(FeatherIcons.settings),
    onPressed: () {},
  ),
  child: Text('Configure your preferences'),
  onTap: () => print('Card tapped'),
)

Properties

  • title - Card title text
  • subtitle - Optional subtitle text
  • action - Optional action widget (usually IconButton)
  • child - Main content widget
  • onTap - Tap handler for the entire card

Complete HuxCard documentation is coming soon. See the example app for more usage patterns.