vasx_ui 2.0.0 copy "vasx_ui: ^2.0.0" to clipboard
vasx_ui: ^2.0.0 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 #

vasX UI Banner

A comprehensive collection of beautiful, reusable Flutter widgets built for production-grade applications.

pub version Live Demo Flutter License: MIT GitHub stars Developer


👉 Explore Live Interactive Web Demo 🌐


📖 Table of Contents #


📝 Description #

vasX UI is an extensively crafted UI library for Flutter. Instead of rewriting common complex UI components like multi-step wizards, searchable dropdowns, side menus, 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)


🚀 Installation #

Add vasx_ui to your pubspec.yaml dependencies:

dependencies:
  vasx_ui: ^2.0.0

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;
  }),
)

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);
}

CrmCalendar #

An interactive month and week view CRM calendar with event badges.

CrmCalendar(
  events: [
    CrmCalendarEvent(
      title: 'Demo Meeting',
      date: DateTime.now(),
      color: Colors.blue,
    ),
  ],
  onDateSelected: (date) => print('Selected: $date'),
)

CrmStatsDashboard #

A comprehensive CRM analytics dashboard with key metric cards and interactive charts.

CrmStatsDashboard(
  title: 'Sales Dashboard',
  stats: const [
    CrmStatCardData(title: 'Total Revenue', value: '₹1,24,500', change: '+14%'),
  ],
)

VasxFormCard #

A modern, polished form card with header badge, icon input fields, obscure password toggle, and submit button.

VasxFormCard(
  title: 'Sign In',
  subtitle: 'Enter your account details',
  badgeText: 'Secure',
  fields: [
    VasxFormFieldConfig(
      label: 'Email',
      hint: 'user@example.com',
      prefixIcon: Icons.email_outlined,
    ),
    VasxFormFieldConfig(
      label: 'Password',
      hint: '••••••••',
      prefixIcon: Icons.lock_outline,
      isPassword: true,
    ),
  ],
  submitButtonText: 'Login',
  onSubmit: (data) => print(data),
)

VasxButton #

A customizable action button supporting primary, outlined, and secondary variants, plus sizes and loading state.

VasxButton(
  label: 'Save Changes',
  icon: Icons.check_circle_outline,
  variant: VasxButtonVariant.primary,
  onPressed: () => _save(),
)

VasxToggle #

An animated, modern custom toggle switch widget.

VasxToggle(
  value: _isEnabled,
  onChanged: (val) => setState(() => _isEnabled = val),
)

VasxCheckbox #

A rounded square checkbox widget with checkmark indicator.

VasxCheckbox(
  value: _isChecked,
  label: 'I accept terms and conditions',
  onChanged: (val) => setState(() => _isChecked = val),
)

VasxSearchBar #

An action toolbar search bar with clear button.

VasxSearchBar(
  hint: 'Search products...',
  onChanged: (query) => _filterResults(query),
)

VasxAiSearchBar #

An AI assistant capsule search bar featuring a gradient title badge and attachment popup overlay.

VasxAiSearchBar(
  title: 'AI Assistant',
  hint: 'Ask anything or upload attachments...',
  onSubmit: (prompt) => _sendPrompt(prompt),
)

VasxPaymentConfirmationDialog #

A billing dialog with summary breakdown, editable payment input, breakdown list, and slide-to-pay action button.

VasxPaymentConfirmationDialog(
  title: 'Supermarket Billing',
  totalAmount: 1000.0,
  alreadyPaidAmount: 200.0,
  items: const [
    VasxPaymentItem(name: 'Grocery Items', amount: 700.0),
    VasxPaymentItem(name: 'Beverages', amount: 300.0),
  ],
  onConfirmPayment: (paid) => print('Paid: ₹$paid'),
)

VasxAlert & showVasxAlertToast #

Green (Success), Yellow (Warning), Red (Error), and Blue (Info) alert banners, plus a top-right animated toast helper auto-hiding after 2 seconds.

// Solid Banner Widget
VasxAlert(
  title: 'Logout Successful',
  message: 'See you soon!',
  type: VasxAlertType.success,
  variant: VasxAlertVariant.solid,
  onDismiss: () => _hideAlert(),
)

// Animated Top-Right Toast (Auto-hides in 2s)
showVasxAlertToast(
  context: context,
  title: 'Storage Warning',
  message: 'Cloud storage at 85% capacity.',
  type: VasxAlertType.warning,
  duration: const Duration(seconds: 2),
);

VasxSideMenu #

A collapsible side menu widget supporting smooth mouse-hover expansion (from 72px to 250px), badge counts, and nested submenus.

VasxSideMenu(
  brandName: 'Test Shop',
  selectedId: _selectedId,
  expandOnHover: true,
  items: const [
    VasxSideMenuItem(id: 'dashboard', label: 'Dashboard', icon: Icons.grid_view_rounded),
    VasxSideMenuItem(id: 'orders', label: 'My Orders', icon: Icons.shopping_bag_outlined, badgeText: '5'),
    VasxSideMenuItem(
      id: 'products',
      label: 'Products',
      icon: Icons.inventory_2_outlined,
      subItems: [
        VasxSideMenuItem(id: 'all_products', label: 'All Products', icon: Icons.list_alt_rounded),
      ],
    ),
  ],
  onItemSelected: (id) => setState(() => _selectedId = id),
)

VasxMobileBottomNavBar #

A floating pill-style mobile bottom navigation bar widget with active item capsule pill expansion.

VasxMobileBottomNavBar(
  selectedId: _currentTab,
  onItemSelected: (id) => setState(() => _currentTab = id),
  items: const [
    VasxBottomNavItem(id: 'dashboard', label: 'Dashboard', icon: Icons.grid_view_rounded),
    VasxBottomNavItem(id: 'orders', label: 'Orders', icon: Icons.shopping_bag_outlined, badgeText: '3'),
    VasxBottomNavItem(id: 'customers', label: 'Customers', icon: Icons.people_outline_rounded),
  ],
)

📁 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 FileUploader widget.
  • ❌ Implement Timeline view component.
  • ❌ Add dark mode explicit toggle support across all widgets.
  • ✅ Comprehensive widget tests coverage.
  • ✅ Publish interactive web demo: vasxui.netlify.app

🤝 Contributing #

Contributions are welcome! If you find a bug or have a feature request, please open an issue.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

👨‍💻 Author #

Sabari Vasan S M


📜 License #

This project is licensed under the MIT License - see the LICENSE file for details.

2
likes
150
points
79
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 Flutter apps.

License

MIT (license)

Dependencies

fl_chart, flutter, intl

More

Packages that depend on vasx_ui