Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/shashiben/flutter-utils
- Owner: shashiben
- License: mit
- Created: 2021-09-27T13:02:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T17:16:14.000Z (24 days ago)
- Last Synced: 2024-12-13T17:47:02.542Z (24 days ago)
- Topics: development, flutter, flutter-utils
- Language: Dart
- Homepage: https://pub.dev/packages/dev_utils
- Size: 1.51 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)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