ease_x 1.1.1
ease_x: ^1.1.1 copied to clipboard
A set of useful Flutter extensions for UI, navigation, theming, and utilities.
đ EaseX - Simplify Flutter Development đī¸ #
EaseX is a feature-rich Flutter package that enhances development by providing a collection of powerful extensions and utilities. It simplifies UI styling, navigation, validation, device information handling, and much more. â¨

đ¯ Features #
â
Text Styling Extensions đī¸ - Easily apply bold, italic, underlined, colored, and size styles to Text widgets.
â
Navigation Simplifications đ§ - Use .push() and .pop() to navigate between screens effortlessly.
â Device Utilities đą - Get device information like screen size, platform type (Android/iOS), and keyboard visibility.
â Validation Helpers â - Built-in validators for common form inputs such as email, phone number, and password strength.
â
Toast Notifications đ - Display toast messages easily using showToast(), showSuccessToast(), etc.
â
Spacing & Padding Extensions đ - Use .vBox and .pad() to manage spacing between widgets.
â
Keyboard Management â¨ī¸ - Hide the keyboard programmatically with EaseXDevice.hideKeyboard().
â
Rotation & Visibility đ - Rotate widgets with .rotate() and conditionally show them with .showIf().
â
Asynchronous Handling âŗ - Delay actions using Future.delayed(1.seconds) instead of manually defining durations.
â
Loading Indicator đ - Show and hide a global loader using EaseXLoader.show() and EaseXLoader.hide().
â
Expandable Widgets đ - Wrap widgets in .expanded() for better layout management.
And much more! đ Explore the complete package to discover all utilities. đĻ
đ Getting Started #
đĨ Install the package #
flutter pub add ease_x
đ Import it into your project #
import 'package:ease_x/ease_x.dart';
⥠Usage #
đ¨ Text Styling Extensions #
Text('Bold Text').bold(); // đ Make text bold
Text('Colored Text').colored(Colors.deepPurple); // đ¨ Apply color to text
Text('Sized Text').size(20); // đĄ Change text size
Text('Underlined Text').underlined(); // âī¸ Underline text
đ§ Navigation Simplification #
context.push(SecondScreen()); // đ Navigate to another screen
context.pop(); // đ Go back to the previous screen
đą Device Utilities #
bool hasInternet = await EaseXDevice.hasInternetConnection(); // đ Check internet connection
double screenWidth = EaseXDevice.getScreenWidth(context); // đ Get screen width
đ¨ Light and Dark Theme #
MaterialApp(
debugShowCheckedModeBanner: false,
theme: EaseXTheme.light, // đ Light Theme
darkTheme: EaseXTheme.dark, // đ Dark Theme
navigatorKey: EaseXLoader.navigatorKey, // đ Required for EaseXLoader
home: const ExampleHomeScreen(), // đ Initial Screen
);
đ Toast Messages #
"Hello from EaseX!".showBlackToast(); // đĸ Show black toast
"Success!".showSuccessToast(); // â
Show success toast
âŗ Show/Hide Loader #
EaseXLoader.show(); // đ Show loading indicator
await Future.delayed(2.seconds);
EaseXLoader.hide(); // â Hide loader
đī¸ Conditional Visibility #
Text('Visible Text').showIf(condition == true); // đ Show text based on condition
âšī¸ Additional Information #
EaseX is designed to make Flutter development easier and faster by reducing boilerplate code. đ
There is so much more to explore! Check out the package code for a deep dive into all available features.
Happy coding! đđĨ
đ¨âđģ Contributors #
This package is actively maintained by:
|
Shashwat |
Ajay |
đŦ Feel free to connect with us on LinkedIn! đ
Let me know if you need any modifications! đđĨ