flutterio_ui_kit

A collection of reusable UI widgets and components for Flutter mobile applications, built with Material 3 design principles.

Features

  • CustomButton: A highly customizable button widget with multiple style variants
    • Filled, outlined, text, and elevated styles
    • Support for icons and loading states
    • Full-width option
    • Customizable colors, padding, and border radius

Getting Started

Add this package to your pubspec.yaml:

dependencies:
  flutterio_ui_kit:
    git:
      url: https://github.com/ibrghoutn/flutterio.git
      path: packages/flutterio_ui_kit

Usage

CustomButton

A versatile button widget that supports various styles and configurations:

import 'package:flutterio_ui_kit/flutterio_ui_kit.dart';

// Basic usage
CustomButton(
  text: 'Click me',
  onPressed: () => print('Button pressed'),
)

// With icon
CustomButton(
  text: 'Add Item',
  icon: Icons.add,
  onPressed: () => _addItem(),
)

// Different styles
CustomButton(
  text: 'Outlined',
  style: CustomButtonStyle.outlined,
  onPressed: () {},
)

// Loading state
CustomButton(
  text: 'Submit',
  isLoading: true,
  onPressed: _handleSubmit,
)

// Full width
CustomButton(
  text: 'Continue',
  isFullWidth: true,
  onPressed: () => _navigateNext(),
)

// Custom styling
CustomButton(
  text: 'Custom',
  backgroundColor: Colors.purple,
  foregroundColor: Colors.white,
  borderRadius: BorderRadius.circular(20),
  padding: EdgeInsets.all(16),
  onPressed: () {},
)

Widget Catalog

Buttons

  • CustomButton: Versatile button with multiple styles and configurations

Design Principles

  • Material 3: All widgets follow the latest Material Design guidelines
  • Mobile-first: Optimized for touch interactions and mobile screens
  • Accessibility: Built with accessibility in mind
  • Customizable: Flexible styling options while maintaining consistency

Additional Information

This package is part of the FlutterIO monorepo. For more information, visit the main repository.

Contributing

Please see our contributing guidelines in the main repository.

Libraries

flutterio_ui_kit
A collection of reusable UI widgets and components for Flutter mobile applications.