🎩 Flutter Extend

The Ultimate Cheat Code for Flutter Developers

FLUTTER EXTEND

Mintlify Docs Pub Version License


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

  1. Add the package to your pubspec.yaml:
dependencies:
  flutter_extend: ^0.0.6
  1. Run this spell in your terminal:
flutter pub get
  1. 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:

KenStarry
KenStarry
Enos Okello
Enos Okello
Mohammed Hisham
Mohammed Hisham
---

πŸ›  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