What is Hux UI?
Hux UI is an open-source state-of-the-art UI library for Flutter, created by Zoe Gilbert . It provides a comprehensive set of beautiful, customizable components designed for clean and consistent user interfaces.
Key Features
Clean, minimal design language with beautiful animations and smooth interactions.
Built-in light and dark theme support with automatic adaptation and design tokens.
Beautiful animated charts for data presentation with line and bar chart support.
Components adapt to different screen sizes and provide excellent cross-platform support.
Extensive customization options with design tokens and theme system.
WCAG AA compliant with proper contrast ratios and accessibility features.
Available Components
Hux UI includes 13+ carefully crafted components organized into logical categories:
HuxButton - Multiple variants (primary, secondary, outline, ghost) with loading states
HuxTextField - Enhanced text input with validation and consistent styling
HuxCheckbox - Interactive checkbox with custom styling and labels
HuxSwitch - Toggle switch with smooth animations
Layout & Display
HuxCard - Flexible card component with headers, actions, and tap handling
HuxAvatar - Circular user images with initials fallback and gradient variants
HuxAvatarGroup - Display multiple avatars with overlapping layouts
Feedback & Status
HuxBadge - Status indicators with semantic variants
HuxAlert - Message boxes with dismissible functionality
HuxLoading - Customizable loading indicators and overlays
Advanced Components
HuxChart - Beautiful data visualization with cristalyse integration
HuxContextMenu - Right-click context menus with smart positioning
Theme System
HuxTheme - Pre-configured light and dark themes
HuxColors - Comprehensive color palette
HuxTokens - Design token system for consistent theming
Quick Example
import 'package:flutter/material.dart' ;
import 'package:hux/hux.dart' ;
void main () {
runApp ( MyApp ());
}
class MyApp extends StatelessWidget {
@override
Widget build ( BuildContext context) {
return MaterialApp (
title : 'Hux UI Demo' ,
theme : HuxTheme .lightTheme,
darkTheme : HuxTheme .darkTheme,
home : Scaffold (
body : Column (
children : [
HuxButton (
onPressed : () => print ( 'Hello Hux!' ),
child : Text ( 'Get Started' ),
variant : HuxButtonVariant .primary,
),
HuxCard (
title : 'Welcome to Hux UI' ,
subtitle : 'Build beautiful Flutter apps' ,
child : Text ( 'Start creating amazing user interfaces' ),
),
],
),
),
);
}
}
Links
Responses are generated using AI and may contain mistakes.