flutter_extend 0.2.1
flutter_extend: ^0.2.1 copied to clipboard
Simple, Efficient Flutter Extensions! Supercharge your Flutter development with a collection of easy-to-use, lightweight, and practical extension methods.
π© Flutter Extend #
The Ultimate Cheat Code for Flutter Developers #
Stop writing boilerplate. Start writing magic.
flutter_extend supercharges your workflow with intuitive extensions for Widgets, Context, Data Generation, and more.
π Read the Full Documentation on Starry Hub #
All guides, advanced examples, and API references have moved to our official documentation site.
β‘ Why Use This? #
Because you have better things to do than writing MediaQuery.of(context).size.width for the 100th time.
| The Old Way (Boring π΄) | The Flutter Extend Way (Magic β¨) |
|---|---|
MediaQuery.of(context).size.width |
context.screenWidth |
Navigator.push(context, MaterialPageRoute(...)) |
context.push(NextPage()) |
Padding(padding: EdgeInsets.all(8), child: ...) |
myWidget.padding() |
| Googling "Lorem Ipsum generator" | 30.loremWords |
| Manually writing animation controllers | myWidget.fadeIn().moveY() |
βοΈ Installation #
- Add the package to your
pubspec.yaml:
dependencies:
flutter_extend: ^0.0.6
- Run this spell in your terminal:
flutter pub get
- Import it and unleash the power:
import 'package:flutter_extend/flutter_extend.dart';
BOOM. π₯ Youβre now 10x more powerful (results may vary).
ποΈ Quick Start #
This is just a taste. See all 50+ extensions in the Official Docs.
1. Context Magic πͺ #
// The Old Way
double width = MediaQuery.of(context).size.width;
bool isDark = Theme.of(context).brightness == Brightness.dark;
// The New Way
double width = context.screenWidth;
bool isDark = context.isDarkMode;
2. String Power β‘ #
String email = "badEmail.com";
if (!email.isEmailValid()) {
print("Invalid Email!"); // Prints: Invalid Email!
}
String title = "hello world".toTitleCase(); // Hello World
3. Widget Shortcuts πΌοΈ #
// Add padding, alignment, and click events without nesting hell
Text("Click Me")
.center()
.padding(all: 16)
.clickable(onTap: () => print("Clicked!"));
π€ Contributors #
We love our community! Big thanks to these wizards:
---π Found something cool to add? **Please read our Contribution Guidelines before making a pull request.
π License β Go Wild! #
This package is licensed under MIT, meaning you can use it, modify it, and show it off to your friends. π
π Thatβs it, folks! Now go forth and write Flutter code like an absolute legend. ππ
Made with π by KenStarry


