utiler 1.0.0
utiler: ^1.0.0 copied to clipboard
Essential utility functions and helpers for Dart/Flutter projects. Simplify everyday coding with tools for common logic patterns. Developed by Mehrab Ghassab
π Utiler #
A comprehensive Dart/Flutter utility toolkit that simplifies everyday development tasks β from async handling and concurrency to logging, storage, networking, UI helpers, and global app configuration.
β¨ Features #
β± Async Utilities #
- Debouncer β Prevent rapid repeated calls (e.g., search input)
- Throttler β Limit execution rate over time
- Retry β Retry failed async operations with configurable logic
β‘ Concurrency Utilities #
- BatchExecutor β Execute tasks in controlled batches
- ParallelExecutor β Run multiple async tasks in parallel
π§ Core Utilities #
- InternetConnectivity β A reactive utility that detects real-time network status including connected, disconnected, and VPN states with stream-based listeners and current status check.
- Either β Functional error handling (Left/Right pattern)
- Guard β Safe execution wrapper for error handling
- LazyValue β Lazy initialization helper
- LifecycleHandler β App lifecycle observer
πΎ Database Layer #
- Database β Unified adapter for JSON & secure storage with CRUD support
- JsonDatabase β Local storage using Hive
- SecureDatabase β Secure key-value storage
π Extensions #
- Context, Iterable, List, Map, Num, and String extensions
π Logging System #
- Logger β Base logging functionality
- PrettyLogger β Formatted and readable logs
- LoggerConsole (UI) β In-app log viewer
- StopwatchLogger β Measure execution time
π API Service #
- ApiService β CRUD methods (GET, POST, PUT, DELETE) built on top of
http
π¨ UI Utilities #
- Collection of reusable and practical widgets
π Values & Scopes #
- ValuesScope β Global wrapper for locale and theme
- LocaleScope β Localization handler
- ThemeScope β Theme management
π§© Utiler Scope #
- UtilerScope β Single entry point to access and manage all utilities
π Feature Generator (create_feature) #
Includes a CLI tool to quickly generate a Clean Architecture feature structure.
π Usage #
Run the following command:
dart run create_feature.dart -n feature_name
π‘ Why Utiler? #
- All-in-one utility toolkit
- Reduces boilerplate code
- Improves code readability and maintainability
- Clean and scalable structure
- Designed for real-world Flutter applications