ease_x 1.1.3 copy "ease_x: ^1.1.3" to clipboard
ease_x: ^1.1.3 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. ✨


EaseX Animation

🎯 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! πŸš€πŸ”₯

18
likes
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A set of useful Flutter extensions for UI, navigation, theming, and utilities.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, fluttertoast

More

Packages that depend on ease_x