ease_x 1.6.2
ease_x: ^1.6.2 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.
â Smooth Alert Dialog Animation đ - Animated alert dialogs with bounce effects!
â Sharing Made Easy with EaseXShare Utils đ - Share text, images, videos, pdf and etc... files easily using EaseXShare Utils.
â EaseXMedia - Powerful media picking utilities
â EaseXStorage - Simple key-value storage
â EaseFileSaver - Save Dynamic Files in iOS and Android
â Shimmer Effect on Widgets â Easily apply a shimmer effect to any widget using .shimmer()
đ New Features in v1.6.0 #
â EaseXSpeech - Convert text to Speech easily with EaseXSpeech.speak();
â EaseXDevice - Get the Device Information with EaseXDevice.deviceInfo
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
đ Animated Alert Dialogs** #
EaseXLoader.showAlert("This is an info alert!"); // âšī¸ Show an info alert
EaseXLoader.showErrorAlert("Oops! Something went wrong."); // â Show an error alert
EaseXLoader.showSuccessAlert(); // â
Show a success alert
đ Share Utils #
EaseXShare.shareSingleImage(imageFile, text: "Sample Text");
EaseXShare.shareFile(file);
EaseXShare.openWhatsAppChat('+91', '8920119443',message: "Flutter Developer.");
đī¸ Conditional Visibility #
Text('Visible Text').showIf(condition == true); // đ Show text based on condition
đŧī¸ Media Utilities #
// Pick single image
final image = await EaseXMedia.pickImage();
// Pick video
final video = await EaseXMedia.pickVideo();
đž EaseX Storage #
// Initialize (call once)
await EaseXStorage.init();
// Save data
await EaseXStorage.setString('token', 'abc123');
// Read data
final token = EaseXStorage.getString('token');
// Remove data
await EaseXStorage.remove('token');
đž EaseX File Saver #
await EaseXFileSaver.saveFile(
fileName: 'note',
type: FileType.text,
content:
'EaseX is an Utility package for helping Flutter Developers.',
);
⨠Shimmer Effect #
Container(
width: 200,
height: 120,
decoration:
BoxDecoration(borderRadius: BorderRadius.circular(12.0)),
).shimmer().pad(all: 12.0)
đ New Features in v1.6.0 #
đ EaseXSpeech #
void speakNow() {
EaseXSpeech.speak("Hello! Welcome to EaseX Utilities.");
}
đą EaseXDevice #
void printDeviceDetails() async {
final deviceData = await EaseXDevice.deviceInfo;
print(deviceData);
}
âšī¸ 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! đđĨ