vasx_ui 0.0.2
vasx_ui: ^0.0.2 copied to clipboard
vasX UI — a collection of beautiful, reusable Flutter widgets including smart dropdowns, date pickers, multi-step wizards, animated popup menus, and responsive data tables. Built for production-grade [...]
vasX UI #
A comprehensive collection of beautiful, reusable Flutter widgets built for production-grade applications.
📖 Table of Contents #
- Description
- Features
- Screenshots
- Installation
- Quick Start
- Widget Catalog
- Folder Structure
- Roadmap
- Contributing
- Author
- License
📝 Description #
vasX UI is an extensively crafted UI library for Flutter. Instead of rewriting common complex UI components like multi-step wizards, searchable dropdowns, and customizable tables, vasx_ui provides highly polished, fully customizable, and deeply integrated widgets that you can plug directly into your production apps. It follows modern design principles out of the box with fluid animations, adaptive layouts, and a cohesive color system.
✨ Features #
- 🎯 Production Ready: Built and tested for robust enterprise applications.
- 🎨 Highly Customizable: Easily override colors, typography, and behaviors.
- 🧩 Modular Components: Import only what you need.
- 📱 Responsive: Looks great on mobile, tablet, and desktop screens.
- 🚀 Smooth Animations: Integrated micro-interactions for a premium feel.
- 🌈 Built-in Theming: Consistent design language via
VasxColors.
📸 Screenshots #
[vasX UI Components]
(Above: A showcase of the versatile widgets included in vasX UI)
🎬 Animated Demo #
(Coming soon)
🚀 Installation #
Add vasx_ui to your pubspec.yaml dependencies:
dependencies:
vasx_ui: ^0.0.1
Or run the following command in your terminal:
flutter pub add vasx_ui
⚡ Quick Start #
Import the package anywhere in your project:
import 'package:vasx_ui/vasx_ui.dart';
Use the cohesive color tokens provided by the library to match your app's theme:
Container(
color: VasxColors.primarySurface,
child: Text(
'Welcome to vasX UI',
style: TextStyle(color: VasxColors.textPrimary),
),
);
🧩 Widget Catalog & Usage Examples #
AppPopupMenu #
An animated scale and fade popup action menu, perfect for context actions.
AppPopupMenu(
onClose: () => overlayEntry.remove(),
items: [
AppPopupMenuItem(
label: 'Edit',
icon: Icons.edit_outlined,
onTap: () => _onEdit(),
),
AppPopupMenuItem(
label: 'Duplicate',
icon: Icons.copy,
onTap: () => _onDuplicate(),
),
AppPopupMenuItem(
label: 'Delete',
icon: Icons.delete_outline,
isDestructive: true,
onTap: () => _onDelete(),
),
],
)
CustomTable #
A responsive, horizontally-scrollable data table optimized for large datasets.
CustomTable(
columns: const [
CustomTableColumn(label: 'Name', flex: 2),
CustomTableColumn(label: 'Email'),
CustomTableColumn(label: 'Role'),
CustomTableColumn(label: 'Action', alignment: Alignment.center),
],
itemCount: users.length,
rowBuilder: (context, index) {
final user = users[index];
return [
Text(user.name),
Text(user.email),
Chip(label: Text(user.role)),
Row(
mainAxisSize: MainAxisSize.min,
children: [
IconButton(icon: const Icon(Icons.edit, color: Colors.blue), onPressed: () {}),
IconButton(icon: const Icon(Icons.delete, color: Colors.red), onPressed: () {}),
],
)
];
},
)
VerticalWizardShell #
A multi-step wizard with a vertical left-hand stepper, ideal for complex desktop forms.
VerticalWizardShell(
steps: const [
WizardStepConfig(
icon: Icons.person_outline_rounded,
label: 'Personal Info',
mobileLabel: 'Personal',
subtitle: 'Name & contact',
),
WizardStepConfig(
icon: Icons.location_on_outlined,
label: 'Address Details',
mobileLabel: 'Address',
),
WizardStepConfig(
icon: Icons.check_circle_outline,
label: 'Review & Confirm',
mobileLabel: 'Review',
),
],
currentStep: _currentStep,
title: 'Registration',
formContent: MyFormWidget(),
onBack: _currentStep > 0 ? _prevStep : null,
onNext: _nextStep,
nextLabel: _currentStep == 2 ? 'Finish' : 'Next',
onCancel: () => Navigator.pop(context),
)
ScrollableWizardShell #
An all-sections-visible scrollable form wizard with a progress tracker.
ScrollableWizardShell(
steps: _steps,
title: 'Create Profile',
sectionContents: [
PersonalDetailsForm(),
AddressForm(),
EducationForm(),
EmploymentForm(),
ReviewForm(),
],
saving: _isSaving,
onSave: _submitForm,
onCancel: () => Navigator.pop(context),
)
SearchableDropdown #
A single-select dropdown with live search filtering.
SearchableDropdown(
label: 'Country',
value: _country,
hint: 'Search country...',
items: countries,
onChanged: (val) => setState(() => _country = val),
)
MultiSelectSearchableDropdown #
A multi-select dropdown that displays selected items as visual chips.
MultiSelectSearchableDropdown(
label: 'Frameworks',
values: _selectedFrameworks,
hint: 'Select frameworks',
items: ['Flutter', 'React', 'Node.js', 'Vue', 'Angular'],
onChanged: (vals) => setState(() => _selectedFrameworks = vals),
)
CreatableDropdown #
A versatile dropdown allowing users to select an existing item or create a new one inline.
CreatableDropdown(
value: _selectedTag,
items: _tags,
hint: 'Search or create...',
onChanged: (val) => setState(() => _selectedTag = val),
onAddItem: (newTag) => setState(() {
_tags.add(newTag);
_selectedTag = newTag;
}),
)
DropdownDatePicker #
A three-dropdown (Year / Month / Day) date picker, excellent for date of birth inputs.
DropdownDatePicker(
controller: _dobController,
label: 'Date of Birth',
startYear: 1900,
endYear: 2024,
dateFormat: 'dd/MM/yyyy',
showExtendYears: false,
)
CustomDateRangePickerDialog #
A beautifully designed dual-calendar date range picker dialogue.
final range = await showCustomDateRangePicker(
context: context,
initialDateRange: _selectedRange,
);
if (range != null) {
setState(() => _selectedRange = range);
}
📁 Folder Structure #
vasx_ui/
├── lib/
│ ├── src/
│ │ ├── widgets/ # All UI components
│ │ ├── theme/ # Color tokens and styling (VasxColors)
│ │ └── utils/ # Helpers and extensions
│ └── vasx_ui.dart # Main export file
├── example/ # Full example app demonstrating all widgets
├── image/ # Assets for README
├── test/ # Unit and widget tests
└── pubspec.yaml # Package configuration
🗺️ Roadmap #
- ❌ Add
FileUploaderwidget. - ❌ Implement
Timelineview component. - ❌ Add dark mode explicit toggle support across all widgets.
- ❌ Comprehensive widget tests coverage.
- ❌ Publish interactive web demo.
🤝 Contributing #
Contributions are welcome! If you find a bug or have a feature request, please open an issue.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
👨💻 Author #
Sabari Vasan S M
- Portfolio: portfolio.sabari.me
- GitHub: @Sabari-Vasan-SM
📜 License #
This project is licensed under the MIT License - see the LICENSE file for details.