🎨 Turbo Widgets

Pub Version License: BSD-3-Clause GitHub Stars

Turbo Widgets is a collection of common reusable UI widgets, extensions, and animation utilities for Flutter applications. It provides convenient widgets and extensions to speed up Flutter development.

Features

  • Convenient Widgets: Pre-built widgets like TurboRow, TurboColumn, TurboPadding, TurboMargin, TurboDivider, and more
  • Animation Utilities: Widgets like TurboAnimatedSize and TurboSlideShrink for smooth animations
  • Extensions: Helpful extensions for numbers, strings, durations, and more
  • Badge & Chip Widgets: Ready-to-use badge and chip widgets for UI elements

Installation

Add turbo_widgets to your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  turbo_widgets: ^1.0.0

Then run:

flutter pub get

Usage

Widgets

import 'package:turbo_widgets/turbo_widgets.dart';

// Convenient padding
TurboPadding.app() // Standard app padding (16.0)
TurboPadding.button() // Button padding (16.0 horizontal, 0 vertical)
TurboPadding.card() // Card padding (12.0)

// Layout widgets
TurboRow(
  children: [
    // Your widgets
  ],
)

TurboColumn(
  children: [
    // Your widgets
  ],
)

// Divider
TurboDivider(
  height: 1.0,
  color: Colors.grey,
)

Extensions

// Number extensions
5.0.scale(0.5) // Scale a number

// String extensions
'hello'.capitalize() // Capitalize first letter

// Duration extensions
Duration(seconds: 5).format() // Format duration

Example

Check the /example directory for a complete Flutter application demonstrating Turbo Widgets features.

Contributing

Contributions are welcome! Please open issues or pull requests on our GitHub repository.

License

This package is licensed under the BSD 3-Clause License. See the LICENSE file for details.

Libraries

turbo_widgets