FLUTTER ECOSYSTEM

shashiben/Flutter-Utils

一组对Flutter开发者有用的扩展和实用工具,包括响应式布局辅助、widget内边距扩展、密码强度验证和输入验证器。简化常见任务,提升代码可读性和性能。

Flutter-Utils 项目封面
Stars
2
Forks
0
最近推送(UTC)
2025年6月14日
项目状态
未归档
Shashi Kumar GitHub avatar
GITHUB User

Shashi Kumar ↗

Full Stack Developer | Flutter |MERN Stack | FReMP Stack

@sharpsellBengaluru
语言Dart

技术话题

此仓库发布的插件

使用的依赖

依赖清单 4 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

🎉 Flutter Utils 🚀

Pub Version License: MIT Pub Points Likes

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.

🚀 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:

dependencies:
  flutter_utils: latest_version