easy_dev_toolkit 0.2.0 copy "easy_dev_toolkit: ^0.2.0" to clipboard
easy_dev_toolkit: ^0.2.0 copied to clipboard

A comprehensive Flutter toolkit with responsive sizing, adaptive widgets, networking, and storage utilities.

Easy Dev Toolkit #

Easy Dev Toolkit is a Flutter helper package designed to speed up UI development with responsive layout utilities, reusable UI components, and common helper functions. It helps developers build clean, consistent, and adaptive Flutter apps faster with less boilerplate code. pub package GitHub stars License


πŸš€ Features #

  • πŸ”Ή Responsive Design: ResponsiveBuilder, screen scaling (.w, .h), and context helpers (isTablet, isDesktop).
  • πŸ”Ή Adaptive UI: Material & iOS adaptive widgets (Buttons, TextFields, Dialogs).
  • πŸ”Ή Theme Management: EasyTheme for dynamic light/dark mode switching.
  • πŸ”Ή Context Extensions: Easy navigation and theme access (context.push, context.theme).
  • πŸ”Ή Utility Extensions: Validation and formatting for String and DateTime.
  • πŸ”Ή Storage: Easy SharedPreferences wrapper (AppStorage).
  • πŸ”Ή Networking: Generic base API service and connectivity monitoring.
  • πŸ”Ή Modern Widgets: Glassmorphism cards (GlassCard), TimeLogCalendar, and skeleton loaders.
  • πŸ”Ή Security: Simple AES-256 encryption/decryption utilities.

πŸ“¦ Installation #

Add this to your pubspec.yaml:

dependencies:
  easy_dev_toolkit: ^0.1.6

πŸ›  Usage & API Guide #

1. Responsive & Context Utilities #

Get screen dimensions and scale fonts/sizes easily.

// 1. Initialize in main or first build
SizeConfig.init(context);

// 2. Use scaling extensions
Container(
  width: 50.w,   // 50% of screen width
  height: 200.h, // 200 scaled height units
)

Text("Scaling Text", style: TextStyle(fontSize: 16.sp));

// 3. Responsive Layouts
ResponsiveBuilder(
  mobile: Text("Mobile View"),
  tablet: Text("Tablet View"),
  desktop: Text("Desktop View"),
);

if (context.isTablet) { ... }

// 4. Navigation & Theme
context.push(NextScreen());
EasyTheme.toggle(); // Switch Light/Dark
bool isDark = context.isDarkMode;

2. Networking (EasyApi) #

A high-level wrapper with integrated caching and retries.

// Fetch data with 5-minute cache
final response = await EasyApi.get(
  'https://api.example.com/data',
  useCache: true,
  ttl: Duration(minutes: 5),
);

if (response.isSuccess) {
  print(response.data);
} else {
  print(response.error);
}

3. Storage & Security #

Safe and encrypted local persistence.

// Secure Encryption (AES-256)
String secret = EncryptionUtil.encrypt("My Password");
String original = EncryptionUtil.decrypt(secret);

// Local Storage
await AppStorage.init();
AppStorage.write("theme", "dark");
String theme = AppStorage.read<String>("theme") ?? "light";

4. Advanced UI Components #

Modern, production-ready widgets.

// Glassmorphism
GlassCard(
  child: Text("Glass Effect"),
  blur: 20,
  opacity: 0.1,
)

// Shimmering Skeleton
SkeletonLoader(height: 100, borderRadius: 12)

// Horizontal Date Selector
HorizontalDateSelector(
  days: myDayList,
  onDateSelected: (index) => print(index),
)

// Adaptive Dialog & Loader
EasyDialog.show(context, title: "Alert", message: "Success!");
EasyLoader.show(context); // Global overlay

5. String & Date Extensions #

"hello".capitalize(); // "Hello"
"test@mail.com".isValidEmail; // true
DateTime.now().timeAgo(); // "Just now"
4
likes
160
points
269
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter toolkit with responsive sizing, adaptive widgets, networking, and storage utilities.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, dio, encrypt, flutter, fluttertoast, google_fonts, path_provider, shared_preferences

More

Packages that depend on easy_dev_toolkit