Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shashiben/flutter-utils

A collection of useful extensions and utilities for Flutter developers, including responsive layout helpers, widget padding extensions, password strength validation, and input validators. Simplifies common tasks and improves code readability and performance.
https://github.com/shashiben/flutter-utils

development flutter flutter-utils

Last synced: 11 days ago
JSON representation

A collection of useful extensions and utilities for Flutter developers, including responsive layout helpers, widget padding extensions, password strength validation, and input validators. Simplifies common tasks and improves code readability and performance.

Awesome Lists containing this project

README

        

# πŸŽ‰ Flutter Utils πŸš€
[![Pub Version](https://img.shields.io/pub/v/dev_utils)](https://pub.dev/packages/dev_utils) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Pub Points](https://img.shields.io/pub/points/dev_utils)](https://pub.dev/packages/dev_utils/score) [![Likes](https://img.shields.io/pub/likes/dev_utils)](https://pub.dev/packages/dev_utils)

Buy Me A Coffee

Welcome to **Flutter Utils**, your new best friend for Flutter development! 🎨

This utility package brings **convenience**, **efficiency**, and **simplicity** to your Flutter apps. With a wide variety of extensions, validators, and utilities, we’ve made it easier to build beautiful, responsive, and maintainable Flutter apps with **less boilerplate code**! πŸ§‘β€πŸ’»βœ¨

## Features 🌟

### πŸ› οΈ **Extensions for `BuildContext`**
Say goodbye to repetitive code! Our extensions on `BuildContext` give you instant access to useful properties like:
- πŸ“± **MediaQuery** – Screen size, orientation, and device pixel ratio.
- 🎨 **ThemeData** – Colors, typography, and more.
- πŸ’» **Breakpoints** – Responsive layout detection (`isMobile`, `isTablet`, `isDesktop`).
- πŸš€ **Navigation** – Push and pop routes easily.

### 🧩 **Widget Padding Extensions**
Add **padding** to any widget effortlessly:
- Uniform padding with `pad()`.
- Symmetric padding with `paddingSymmetric()`.
- Custom padding for top, bottom, left, right with `customPadding()`.

### πŸ“ **Validators**
No more manual validation! πŸ”₯ Validate:
- πŸ“§ **Emails** – Check for valid email addresses.
- πŸ”‘ **Passwords** – Ensure passwords are strong enough.
- πŸ“± **Phone Numbers** – Validate phone number formats.
- πŸ† And many more! Quickly add these checks to your forms.

### 🌱 **Additional Utilities**
- **Adaptive Padding**: Adjust padding based on the screen width πŸ“.
- **Dynamic Font Scaling**: Make text responsive to screen size! πŸ”€.
- **Safe Area Helpers**: Easy access to safe area padding & view insets πŸ“±.

### 🎨 **TextStyle Extensions**
Say goodbye to repetitive `TextStyle` configurations! Get access to a range of text style extensions that save time and boost productivity. Learn more in the [TextStyleExtensions documentation](docs/TextStyleExtensions.md).

## πŸš€ How It Helps Developers

### πŸ’ͺ **Less Boilerplate**
Stop repeating yourself! Flutter Utils simplifies common tasks with clean and easy-to-use extensions, saving you time and effort. πŸ•’

### πŸ“± **Responsive Design Made Easy**
Detect screen sizes and orientations with ease. Whether you’re building for **mobile**, **tablet**, or **desktop**, Flutter Utils has you covered. πŸ–₯οΈπŸ“±

### πŸ”’ **Validate User Input Like a Pro**
Forget writing manual validation logic. With just a call, you can validate email, phone numbers, and passwords. Let Flutter Utils handle the validation while you focus on building cool features. πŸ”

### 🎨 **Theming and Styling at Your Fingertips**
Quickly access theme properties, text styles, and colors without digging into `Theme.of(context)`. Just use the simple extensions to make your UI consistent and stylish! πŸ’…

## πŸ“¦ Installation

Add the package to your `pubspec.yaml`:

```yaml
dependencies:
flutter_utils: latest_version