izui 1.1.0
izui: ^1.1.0 copied to clipboard
A futuristic, modern and responsive UI library for Flutter with liquid glass effects, advanced glassmorphism, neon animations, and Apple-inspired components.
IzUI - Futuristic Flutter UI Library #
A cutting-edge, futuristic UI library for Flutter that provides developers with modern, responsive, and highly customizable components inspired by sci-fi interfaces, glassmorphism, and next-generation design principles.
β¨ Features #
- π Futuristic Design: Sci-fi inspired components with neon glows and holographic effects
- π Glassmorphism: Beautiful frosted glass effects with backdrop blur
- π± Responsive: Adaptive layouts that work perfectly across all screen sizes
- π¨ Customizable: Extensive theming and customization options
- β‘ Performance: Optimized 60fps animations and efficient rendering
- βΏ Accessible: WCAG 2.1 AA compliant components
- π Dark-First: Optimized for dark themes with light theme support
π Quick Start #
Installation #
Add IzUI to your pubspec.yaml:
dependencies:
izui: ^1.0.0
Run:
flutter pub get
Basic Usage #
import 'package:flutter/material.dart';
import 'package:izui/izui.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'IzUI Demo',
theme: IzTheme.darkTheme(), // Apply IzUI dark theme
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
// Futuristic Button with neon glow
FuturisticButton(
onPressed: () => print('Button pressed!'),
variant: FuturisticButtonVariant.primary,
child: Text('Click Me'),
),
SizedBox(height: 24),
// Glass morphism card
GlassCard(
child: Text(
'Beautiful glassmorphism effect!',
style: IzTypography.titleMedium,
),
),
SizedBox(height: 24),
// Futuristic text field with scanning animation
NeuraTextField(
decoration: InputDecoration(
labelText: 'Enter text',
hintText: 'Type something...',
),
scanLineAnimation: true,
glowOnFocus: true,
),
],
),
),
);
}
}
π― Components #
FuturisticButton #
A button component with neon glow effects, hover animations, and multiple variants.
FuturisticButton(
onPressed: () {},
variant: FuturisticButtonVariant.primary,
size: FuturisticButtonSize.large,
glowColor: IzColorSchemes.neonBlue,
isLoading: false,
child: Text('Futuristic Button'),
)
Variants:
primary- Neon blue filled buttonsecondary- Neon purple filled buttonsuccess- Neon green filled buttonwarning- Neon orange filled buttondanger- Neon pink filled buttonoutline- Transparent with neon borderglass- Glassmorphism effect
Sizes:
small- 32px heightmedium- 40px height (default)large- 48px height
GlassCard #
A glassmorphism container with backdrop blur effects.
GlassCard(
blurIntensity: 10.0,
opacity: 0.1,
borderOpacity: 0.3,
shadowIntensity: 1.0,
onTap: () {},
child: YourContent(),
)
NeonGlassCard #
Enhanced glass card with neon glow effects and optional pulse animation.
NeonGlassCard(
glowColor: IzColorSchemes.neonPink,
glowIntensity: 1.5,
pulseAnimation: true,
child: YourContent(),
)
LiquidGlassCard β¨ NEW #
Advanced liquid glass component with Apple-inspired fluid animations.
LiquidGlassCard(
surfaceTint: IzColorSchemes.neonBlue,
liquidIntensity: 1.2,
enableLiquidAnimation: true,
enableHoverEffect: true,
onTap: () => print('Liquid glass tapped!'),
child: YourContent(),
)
Features:
- Fluid flowing animations with wave effects
- Interactive ripple effects on tap
- Dynamic surface tinting
- Customizable liquid intensity (0.5x to 2.0x)
- Enhanced hover animations
- Apple-inspired design language
NeuraTextField #
Futuristic text field with scanning animations and enhanced styling.
NeuraTextField(
decoration: InputDecoration(
labelText: 'Username',
hintText: 'Enter username',
),
scanLineAnimation: true,
glowOnFocus: true,
glowColor: IzColorSchemes.neonGreen,
glassMorphism: false,
)
π¨ Theming #
Using Built-in Themes #
MaterialApp(
theme: IzTheme.darkTheme(), // Dark theme (recommended)
// or
theme: IzTheme.lightTheme(), // Light theme
)
Custom Theme #
MaterialApp(
theme: IzTheme.darkTheme(
primaryColor: IzColorSchemes.neonPurple,
fontFamily: 'YourCustomFont',
),
)
Color Schemes #
IzUI provides a comprehensive set of neon colors:
IzColorSchemes.neonBlue // #00E5FF
IzColorSchemes.neonPink // #FF0080
IzColorSchemes.neonGreen // #39FF14
IzColorSchemes.neonPurple // #BC13FE
IzColorSchemes.neonOrange // #FF6600
IzColorSchemes.neonYellow // #FFFF00
IzColorSchemes.neonCyan // #00FFFF
π± Responsive Design #
IzUI includes a powerful responsive system:
// Check screen size
bool isMobile = IzResponsive.isMobile(context);
bool isTablet = IzResponsive.isTablet(context);
bool isDesktop = IzResponsive.isDesktop(context);
// Get responsive values
double spacing = IzResponsive.responsive(
context,
xs: 8.0,
sm: 16.0,
md: 24.0,
lg: 32.0,
fallback: 16.0,
);
// Responsive widget builder
Widget responsiveWidget = IzResponsive.builder(
context,
xs: MobileWidget(),
md: TabletWidget(),
xl: DesktopWidget(),
fallback: DefaultWidget(),
);
π Animations #
IzUI provides smooth, futuristic animations:
// Create glow animation
AnimationController controller = IzAnimations.createGlowController(this);
Animation<double> glowAnimation = IzAnimations.createGlowAnimation(controller);
// Create pulse animation
Animation<double> pulseAnimation = IzAnimations.createPulseAnimation(controller);
// Slide fade transition
Widget animatedWidget = IzAnimations.slideFadeTransition(
animation: animation,
child: YourWidget(),
);
π οΈ Customization #
Glass Effects #
BoxDecoration glassDecoration = IzTheme.glassDecoration(
borderRadius: BorderRadius.circular(16),
color: Colors.white.withOpacity(0.1),
);
Glow Effects #
List<BoxShadow> glowShadow = IzTheme.glowShadow(
IzColorSchemes.neonBlue,
opacity: 0.8,
);
π Requirements #
- Flutter >=3.10.0
- Dart >=3.0.0 <4.0.0
π Examples #
Check out the example directory for a comprehensive showcase of all components and features.
Run the example:
cd example
flutter run
π€ Contributing #
We welcome contributions! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
π License #
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgements #
- Inspired by sci-fi interfaces and futuristic design concepts
- Built with β€οΈ using Flutter
- Glassmorphism effects inspired by modern design trends
Made with β‘ by the IzUI Team
For more information, visit our documentation or check out the API reference.